Skip to content

Commit f5000e7

Browse files
committed
lint
1 parent 722be9d commit f5000e7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/plugin/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ mod tests {
758758

759759
#[test]
760760
fn test_wildcard_matches_plugin() {
761-
let versions = vec!["0.1.9", "0.1.10"];
761+
let versions = ["0.1.9", "0.1.10"];
762762
assert!(wildcard_matches_plugin(
763763
"source/*",
764764
"source/postgres",

src/plugin_lockfile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ mod tests {
419419
assert_eq!(expected, &original_hash);
420420
assert_ne!(expected, actual);
421421
}
422-
other => panic!("Expected Tampered, got {:?}", other),
422+
other => panic!("Expected Tampered, got {other:?}"),
423423
}
424424
}
425425

tests/config_parsing_failure_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn assert_loads_successfully(yaml: &str) {
5454
assert!(
5555
result.is_ok(),
5656
"Config should load successfully (unknown/snake_case source/reaction fields stored in config JSON), but got error: {}",
57-
result.unwrap_err()
57+
result.as_ref().err().map_or_else(String::new, |e| e.to_string())
5858
);
5959
}
6060

0 commit comments

Comments
 (0)