various: fix clippy format string lints
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I9fbd637711f7e90de9170f4db46fee806a6a6964
This commit is contained in:
parent
dc4c00ac4a
commit
0f8719eb52
3 changed files with 5 additions and 10 deletions
|
|
@ -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}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -316,9 +316,7 @@ mod tests {
|
|||
assert_eq!(
|
||||
compare(b, a),
|
||||
inverse,
|
||||
"Commutativity violation: {} vs {}",
|
||||
a,
|
||||
b
|
||||
"Commutativity violation: {a} vs {b}"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue