Mercurial > lbo > hg > sstable
changeset 99:27adf763a778
Fix warnings
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Mon, 13 Apr 2020 09:02:34 +0200 |
parents | 415d33ce0fb6 |
children | e1d2d449e543 |
files | src/error.rs src/types.rs |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/error.rs Mon Apr 13 08:56:17 2020 +0200 +++ b/src/error.rs Mon Apr 13 09:02:34 2020 +0200 @@ -45,7 +45,7 @@ impl Display for Status { fn fmt(&self, fmt: &mut Formatter) -> result::Result<(), fmt::Error> { - fmt.write_str(self.description()) + fmt.write_str(&self.to_string()) } } @@ -80,7 +80,7 @@ _ => StatusCode::IOError, }; - Status::new(c, e.description()) + Status::new(c, &e.to_string()) } } @@ -94,7 +94,7 @@ fn from(e: snap::Error) -> Status { Status { code: StatusCode::CompressionError, - err: e.description().to_string(), + err: e.to_string(), } } }
--- a/src/types.rs Mon Apr 13 08:56:17 2020 +0200 +++ b/src/types.rs Mon Apr 13 09:02:34 2020 +0200 @@ -151,7 +151,7 @@ pub fn unmask_crc(mc: u32) -> u32 { let rot = mc.wrapping_sub(MASK_DELTA); - (rot.wrapping_shr(17) | rot.wrapping_shl(15)) + rot.wrapping_shr(17) | rot.wrapping_shl(15) } #[cfg(test)]