From ac2458f1705194fd3be44fd730c80f7b45d1e854 Mon Sep 17 00:00:00 2001 From: JuanLeon Lahoz Date: Sun, 8 Jan 2023 15:52:00 +0100 Subject: [PATCH] lint: change "assert!(false)" by panic! --- tests/integration_tests.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index d2ff4df..9648158 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -181,7 +181,7 @@ fn test_plot() { .stdout(predicate::str::contains("\n[1.000] ●")) .stderr(predicate::str::contains("[DEBUG] Cannot parse float")); } - Err(_) => assert!(false, "Could not create temp file"), + Err(_) => panic!("Could not create temp file"), } } @@ -215,7 +215,7 @@ fn test_plot_precision() { .stdout(predicate::str::contains("\n[1.0] ●")) .stderr(predicate::str::contains("[DEBUG] Cannot parse float")); } - Err(_) => assert!(false, "Could not create temp file"), + Err(_) => panic!("Could not create temp file"), } } @@ -257,6 +257,6 @@ fn test_common() { .stdout(predicate::str::contains("\n[foo] [3] ∎∎∎\n")) .stdout(predicate::str::contains("\n[ x] [2] ∎∎\n")); } - Err(_) => assert!(false, "Could not create temp file"), + Err(_) => panic!("Could not create temp file"), } }