diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2019-06-12 14:51:37 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2019-06-12 15:17:07 +0200 |
| commit | 234dcb641845cfd927535065df15cb8bb83075d3 (patch) | |
| tree | 82e492a7bc3f07e38a9dfddce549fa3a6d958112 /talpid-core/src | |
| parent | 6f9ec5c62e332af26e359af8788040a7c3403c68 (diff) | |
| download | mullvadvpn-234dcb641845cfd927535065df15cb8bb83075d3.tar.xz mullvadvpn-234dcb641845cfd927535065df15cb8bb83075d3.zip | |
Use is_empty instead of len() == 0
Diffstat (limited to 'talpid-core/src')
| -rw-r--r-- | talpid-core/src/routing/linux/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/talpid-core/src/routing/linux/mod.rs b/talpid-core/src/routing/linux/mod.rs index f162968384..a7adf839fe 100644 --- a/talpid-core/src/routing/linux/mod.rs +++ b/talpid-core/src/routing/linux/mod.rs @@ -330,7 +330,7 @@ of route monitor -{}", } } - Ok(self.pending_change.is_none() && self.needed_changes.len() == 0) + Ok(self.pending_change.is_none() && self.needed_changes.is_empty()) } fn route_cmd(action: &str, route: &Route) -> Command { |
