From 27bd13d19e5dc97c955e80c76d40660effd19cd4 Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Thu, 1 Oct 2026 15:19:15 +0200 Subject: [PATCH] clippy: fix warnings from assert_is_empty lint --- tests/by-util/test_sed.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/by-util/test_sed.rs b/tests/by-util/test_sed.rs index 2f67e781..add24b83 100644 --- a/tests/by-util/test_sed.rs +++ b/tests/by-util/test_sed.rs @@ -1880,7 +1880,7 @@ fn sandbox_rejects_subst_write_flag() -> std::io::Result<()> { let mut actual = String::new(); temp.reopen()?.read_to_string(&mut actual)?; - assert!(actual.is_empty()); + assert_eq!(actual, ""); Ok(()) } @@ -1897,7 +1897,7 @@ fn sandbox_rejects_write_command() -> std::io::Result<()> { let mut actual = String::new(); temp.reopen()?.read_to_string(&mut actual)?; - assert!(actual.is_empty()); + assert_eq!(actual, ""); Ok(()) } @@ -1914,7 +1914,7 @@ fn sandbox_rejects_first_line_write_command() -> std::io::Result<()> { let mut actual = String::new(); temp.reopen()?.read_to_string(&mut actual)?; - assert!(actual.is_empty()); + assert_eq!(actual, ""); Ok(()) }