clippy fixups

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2020-10-14 11:18:26 +02:00
parent e1dfcddc79
commit 54aec2fa8b
3 changed files with 8 additions and 12 deletions

View File

@ -272,7 +272,7 @@ impl RRD {
t += reso; index = (index + 1) % RRD_DATA_ENTRIES;
}
(start, reso, list.into())
(start, reso, list)
}
pub fn from_raw(mut raw: &[u8]) -> Result<Self, std::io::Error> {
@ -289,7 +289,7 @@ impl RRD {
}
if rrd.magic != PROXMOX_RRD_MAGIC_1_0 {
let msg = format!("wrong magic number");
let msg = "wrong magic number".to_string();
return Err(std::io::Error::new(std::io::ErrorKind::Other, msg));
}