cargo clippy --fix

This commit is contained in:
Henry Schimke
2023-01-27 15:24:24 -06:00
parent 58e6827e89
commit 42d40de755
86 changed files with 196 additions and 335 deletions

View File

@@ -64,7 +64,7 @@ fn test_error_in_parameter_locator_compact() {
#[test]
fn test_error_in_parameter_locator_not_compact() {
let alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxyz";
test_error_in_parameter_locator(&format!("{}{}{}", alphabet, alphabet, alphabet));
test_error_in_parameter_locator(&format!("{alphabet}{alphabet}{alphabet}"));
}
#[test]
@@ -165,7 +165,7 @@ fn test_error_in_parameter_locator(data: &str) {
if let Exceptions::NotFoundException(_msg) = res {
// all ok
} else {
panic!("Only Exceptions::NotFoundException allowed, got {}", res);
panic!("Only Exceptions::NotFoundException allowed, got {res}");
}
} else {
let r = Detector::new(&make_larger(&copy, 3)).detect(false);