fix previously undetected clippy warning
This commit is contained in:
parent
cd2895a168
commit
49990d2530
@ -124,11 +124,7 @@ mod tests {
|
|||||||
let output = command.output().expect("Failed to get output");
|
let output = command.output().expect("Failed to get output");
|
||||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||||
|
|
||||||
stdout
|
stdout.trim().lines().any(|line| line == network_name)
|
||||||
.trim()
|
|
||||||
.lines()
|
|
||||||
.find(|line| line == &network_name)
|
|
||||||
.is_some()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user