Skip to content

Commit 21a3e44

Browse files
ci: fix clippy warnings
1 parent ee2661e commit 21a3e44

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

manufacturing-server/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ async fn main() -> Result<()> {
295295
return Err(Rejection::from(fdo_http_wrapper::server::Error::new(
296296
ErrorCode::InternalServerError,
297297
fdo_data_formats::constants::MessageType::Invalid,
298-
&format!("Error loading ownership voucher with guid {}: {}", guid, e),
298+
&format!("Error loading ownership voucher with guid {guid}: {e}"),
299299
)))
300300
}
301301
};
@@ -305,7 +305,7 @@ async fn main() -> Result<()> {
305305
return Err(Rejection::from(fdo_http_wrapper::server::Error::new(
306306
ErrorCode::InternalServerError,
307307
fdo_data_formats::constants::MessageType::Invalid,
308-
&format!("Error converting ownership voucher to pem: {}", e),
308+
&format!("Error converting ownership voucher to pem: {e}"),
309309
)))
310310
}
311311
};

util/src/servers/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub fn settings_per_device(guid: &str) -> Result<ServiceInfoSettings> {
7070

7171
let path_per_device_store = match settings.device_specific_store_driver {
7272
StoreConfig::Directory { mut path } => {
73-
let file_name = format!("{}.yml", guid);
73+
let file_name = format!("{guid}.yml");
7474
path.push(file_name);
7575
path.to_string_lossy().into_owned()
7676
}

0 commit comments

Comments
 (0)