smb: fix rustc 1.42 warnings

pull/4691/head
Victor Julien 6 years ago
parent 0c5c2173bc
commit a729d266c3

@ -151,16 +151,16 @@ fn match_version(op: u8, them: u16, us: u16) -> bool {
true true
}, },
1 => { // LT 1 => { // LT
(them < us) them < us
}, },
2 => { // GT 2 => { // GT
(them > us) them > us
}, },
3 => { // EQ 3 => { // EQ
(them == us) them == us
}, },
4 => { // NE 4 => { // NE
(them != us) them != us
}, },
_ => { _ => {
panic!("called with invalid op {}", op); panic!("called with invalid op {}", op);

@ -705,8 +705,8 @@ impl SMBCommonHdr {
// don't include tree id // don't include tree id
pub fn compare(&self, hdr: &SMBCommonHdr) -> bool { pub fn compare(&self, hdr: &SMBCommonHdr) -> bool {
(self.rec_type == hdr.rec_type && self.ssn_id == hdr.ssn_id && self.rec_type == hdr.rec_type && self.ssn_id == hdr.ssn_id &&
self.msg_id == hdr.msg_id) self.msg_id == hdr.msg_id
} }
} }

Loading…
Cancel
Save