various: fix clippy format string lints

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9fbd637711f7e90de9170f4db46fee806a6a6964
This commit is contained in:
raf 2026-04-21 23:34:39 +03:00
commit 0f8719eb52
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 5 additions and 10 deletions

View file

@ -535,8 +535,7 @@ mod tests {
let result = extract_mc_versions(tag, asset);
assert_eq!(
result, expected,
"Failed for tag: {}, asset: {}",
tag, asset
"Failed for tag: {tag}, asset: {asset}"
);
}
}
@ -570,8 +569,7 @@ mod tests {
let result = extract_loaders(tag, asset);
assert_eq!(
result, expected,
"Failed for tag: {}, asset: {}",
tag, asset
"Failed for tag: {tag}, asset: {asset}"
);
}
}
@ -609,8 +607,7 @@ mod tests {
let result = detect_project_type(filename, repo_name);
assert_eq!(
result, expected,
"Failed for filename: {}, repo: {}",
filename, repo_name
"Failed for filename: {filename}, repo: {repo_name}"
);
}
}

View file

@ -316,9 +316,7 @@ mod tests {
assert_eq!(
compare(b, a),
inverse,
"Commutativity violation: {} vs {}",
a,
b
"Commutativity violation: {a} vs {b}"
);
}
}

View file

@ -23,7 +23,7 @@ mod tests {
fn test_generate_pakku_id() {
let id = generate_pakku_id();
assert_eq!(id.len(), ID_LENGTH);
assert!(id.chars().all(|c| c.is_alphanumeric()));
assert!(id.chars().all(char::is_alphanumeric));
}
#[test]