Skip to content

Commit cb228c2

Browse files
authored
Clippy fixes for smf examples (#624)
1 parent fb67189 commit cb228c2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

smf/examples/info.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ fn main() -> Result<()> {
5858
while let Some(service) = services.next().transpose()? {
5959
let n = service.name()?;
6060

61-
if !args.is_empty() {
62-
if !args.iter().any(|a| n.contains(a)) {
63-
continue;
64-
}
61+
if !args.is_empty() && !args.iter().any(|a| n.contains(a)) {
62+
continue;
6563
}
6664

6765
println!("{}", fil(78, '='));

0 commit comments

Comments
 (0)