Skip to content

Commit fd7d724

Browse files
authored
Rollup merge of #145228 - estebank:unnecessary-parens, r=joshtriplett
Remove unnecessary parentheses in `assert!`s
2 parents 44c9ece + 74c3727 commit fd7d724

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/coretests/tests/tuple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn test_partial_ord() {
3737
assert!(!((1.0f64, 2.0f64) <= (f64::NAN, 3.0)));
3838
assert!(!((1.0f64, 2.0f64) > (f64::NAN, 3.0)));
3939
assert!(!((1.0f64, 2.0f64) >= (f64::NAN, 3.0)));
40-
assert!(((1.0f64, 2.0f64) < (2.0, f64::NAN)));
40+
assert!((1.0f64, 2.0f64) < (2.0, f64::NAN));
4141
assert!(!((2.0f64, 2.0f64) < (2.0, f64::NAN)));
4242
}
4343

library/std/tests/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn test_self_exe_path() {
1616

1717
#[test]
1818
fn test() {
19-
assert!((!Path::new("test-path").is_absolute()));
19+
assert!(!Path::new("test-path").is_absolute());
2020

2121
#[cfg(not(target_env = "sgx"))]
2222
current_dir().unwrap();

0 commit comments

Comments
 (0)