Update to rust 1.40.0 (#7572)

* Update to rust 1.40.0

* fixups
This commit is contained in:
Rob Walker
2019-12-19 23:27:54 -08:00
committed by GitHub
parent 2ebfab8e07
commit a7040896f0
33 changed files with 198 additions and 139 deletions

View File

@ -53,6 +53,7 @@ impl LogLine {
impl Sub for &LogLine {
type Output = String;
#[allow(clippy::comparison_chain)]
fn sub(self, rhs: Self) -> Self::Output {
let a_to_b = Byte::from_str(&self.a_to_b)
.expect("Failed to read a_to_b bytes")
@ -94,7 +95,7 @@ fn map_ip_address(mappings: &[IPAddrMapping], target: String) -> String {
return target.replace(&mapping.private, mapping.public.as_str());
}
}
target.to_string()
target
}
fn process_iftop_logs(matches: &ArgMatches) {