about summary refs log tree commit diff
path: root/library/std/tests
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-08-10 21:59:04 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-10 21:59:04 +0000
commit74c3727b1fbb274d5b5f841302310461ac54ca5e (patch)
tree3f09f53bf4a7d369c7facbfcfd3a3105d3bf73bb /library/std/tests
parent18eeac04fc5c2a4c4a8020dbdf1c652077ad0e4e (diff)
downloadrust-74c3727b1fbb274d5b5f841302310461ac54ca5e.tar.gz
rust-74c3727b1fbb274d5b5f841302310461ac54ca5e.zip
Remove unnecessary parentheses in `assert!`s
Diffstat (limited to 'library/std/tests')
-rw-r--r--library/std/tests/env.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/tests/env.rs b/library/std/tests/env.rs
index e754cf8263b..b53fd69b707 100644
--- a/library/std/tests/env.rs
+++ b/library/std/tests/env.rs
@@ -16,7 +16,7 @@ fn test_self_exe_path() {
 
 #[test]
 fn test() {
-    assert!((!Path::new("test-path").is_absolute()));
+    assert!(!Path::new("test-path").is_absolute());
 
     #[cfg(not(target_env = "sgx"))]
     current_dir().unwrap();