Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksanderRDL committed Dec 14, 2023
1 parent d931436 commit 074e26e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/model_objects/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,14 @@ mod tests {
test_comp.remove_update(unused_clocks);
}

assert_eq!(test_comp.declarations.clocks.contains_key("y"), false);
assert_eq!(used_clocks.contains("y"), false);
assert!(test_comp.declarations.clocks.contains_key("y"), false);

Check failure on line 618 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

panic message is not a string literal

error: panic message is not a string literal --> src/model_objects/component.rs:618:66 | 618 | assert!(test_comp.declarations.clocks.contains_key("y"), false); | ^^^^^ | = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> = note: `-D non-fmt-panics` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(non_fmt_panics)]` help: add a "{}" format string to `Display` the message | 618 | assert!(test_comp.declarations.clocks.contains_key("y"), "{}", false); | +++++

Check warning on line 618 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Tests Ubuntu

panic message is not a string literal
assert!(used_clocks.contains("y"), false);

Check failure on line 619 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

panic message is not a string literal

error: panic message is not a string literal --> src/model_objects/component.rs:619:44 | 619 | assert!(used_clocks.contains("y"), false); | ^^^^^ | = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> help: add a "{}" format string to `Display` the message | 619 | assert!(used_clocks.contains("y"), "{}", false); | +++++

Check warning on line 619 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Tests Ubuntu

panic message is not a string literal

assert_eq!(test_comp.declarations.clocks.contains_key("z"), false);
assert_eq!(used_clocks.contains("z"), false);
assert!(test_comp.declarations.clocks.contains_key("z"), false);

Check failure on line 621 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

panic message is not a string literal

error: panic message is not a string literal --> src/model_objects/component.rs:621:66 | 621 | assert!(test_comp.declarations.clocks.contains_key("z"), false); | ^^^^^ | = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> help: add a "{}" format string to `Display` the message | 621 | assert!(test_comp.declarations.clocks.contains_key("z"), "{}", false); | +++++

Check warning on line 621 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Tests Ubuntu

panic message is not a string literal
assert!(used_clocks.contains("z"), false);

Check failure on line 622 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

panic message is not a string literal

error: panic message is not a string literal --> src/model_objects/component.rs:622:44 | 622 | assert!(used_clocks.contains("z"), false); | ^^^^^ | = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> help: add a "{}" format string to `Display` the message | 622 | assert!(used_clocks.contains("z"), "{}", false); | +++++

Check warning on line 622 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Tests Ubuntu

panic message is not a string literal

assert_eq!(test_comp.declarations.clocks.contains_key("k"), false);
assert_eq!(used_clocks.contains("k"), false);
assert!(test_comp.declarations.clocks.contains_key("k"), false);

Check failure on line 624 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

panic message is not a string literal

error: panic message is not a string literal --> src/model_objects/component.rs:624:66 | 624 | assert!(test_comp.declarations.clocks.contains_key("k"), false); | ^^^^^ | = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> help: add a "{}" format string to `Display` the message | 624 | assert!(test_comp.declarations.clocks.contains_key("k"), "{}", false); | +++++

Check warning on line 624 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Tests Ubuntu

panic message is not a string literal
assert!(used_clocks.contains("k"), false);

Check failure on line 625 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Clippy lint and check

panic message is not a string literal

error: panic message is not a string literal --> src/model_objects/component.rs:625:44 | 625 | assert!(used_clocks.contains("k"), false); | ^^^^^ | = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html> help: add a "{}" format string to `Display` the message | 625 | assert!(used_clocks.contains("k"), "{}", false); | +++++

Check warning on line 625 in src/model_objects/component.rs

View workflow job for this annotation

GitHub Actions / Tests Ubuntu

panic message is not a string literal
}

#[test]
Expand Down

0 comments on commit 074e26e

Please sign in to comment.