Skip to content

Commit 5c286c4

Browse files
committed
fmt
1 parent 5b08c84 commit 5c286c4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

clippy_lints/src/path_from_format.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,6 @@ fn push_comps(string: &mut String, path: &str, trim_first_slash: bool) {
122122
}
123123

124124
fn is_valid_use_case(string: &str, string2: &str) -> bool {
125-
!(
126-
string.is_empty()
127-
|| string.ends_with('/')
128-
|| string.ends_with('\\')
129-
)
130-
|| !(
131-
string2.is_empty()
132-
|| string2.starts_with('/')
133-
|| string2.starts_with('\\')
134-
)
125+
!(string.is_empty() || string.ends_with('/') || string.ends_with('\\'))
126+
|| !(string2.is_empty() || string2.starts_with('/') || string2.starts_with('\\'))
135127
}

0 commit comments

Comments
 (0)