Skip to content

Commit 21575e1

Browse files
committed
keylimectl: fix linting warnings
Signed-off-by: Anderson Toshiyuki Sasaki <[email protected]>
1 parent 5246452 commit 21575e1

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

keylime-push-model-agent/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fn get_avoid_tpm_from_args(args: &Args) -> bool {
101101
async fn run(args: &Args) -> Result<()> {
102102
match args.verifier_url {
103103
Some(ref url) if url.is_empty() => {
104-
info!("Verifier URL: {}", url);
104+
info!("Verifier URL: {url}");
105105
}
106106
_ => {}
107107
};

keylimectl/src/client/registrar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ mod tests {
846846
let client = RegistrarClient::new(&config).unwrap();
847847

848848
// Test that Debug trait is implemented
849-
let debug_string = format!("{:?}", client);
849+
let debug_string = format!("{client:?}");
850850
assert!(debug_string.contains("RegistrarClient"));
851851
}
852852

keylimectl/src/commands/agent.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ mod tests {
841841

842842
for uuid_str in &valid_uuids {
843843
let result = Uuid::parse_str(uuid_str);
844-
assert!(result.is_ok(), "UUID {} should be valid", uuid_str);
844+
assert!(result.is_ok(), "UUID {uuid_str} should be valid");
845845
}
846846
}
847847

@@ -859,11 +859,7 @@ mod tests {
859859

860860
for uuid_str in &invalid_uuids {
861861
let result = Uuid::parse_str(uuid_str);
862-
assert!(
863-
result.is_err(),
864-
"UUID {} should be invalid",
865-
uuid_str
866-
);
862+
assert!(result.is_err(), "UUID {uuid_str} should be invalid");
867863
}
868864
}
869865
}

0 commit comments

Comments
 (0)