8000 Apply cargo clippy --fix · martwz/leetcode-rust@63bb31f · GitHub
[go: up one dir, main page]

Skip to content

Commit 63bb31f

Browse files
committed
Apply cargo clippy --fix
1 parent 31e83c6 commit 63bb31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/leetcode/interview/amazon/find_circle_num.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl Solution {
1717
}
1818

1919
for i in 0..n {
20-
if is_connected[i].len() > 0 {
20+
if !is_connected[i].is_empty() {
2121
provinces += 1;
2222
}
2323
bfs(i, &mut is_connected);

0 commit comments

Comments
 (0)
0