Fix clippy warnings under rust 1.41

This commit is contained in:
Tim Bruijnzeels
2020-02-14 15:58:30 +01:00
parent bf9ba749b8
commit ee38cd74f9
12 changed files with 14 additions and 28 deletions
+1 -2
View File
@@ -329,7 +329,7 @@ impl KrillClient {
let c: Config = toml::from_slice(config.as_ref()).map_err(Error::init)?;
c.verify().map_err(Error::init)?;
Ok(ApiResponse::GenericBody(config.to_string()))
Ok(ApiResponse::GenericBody(config))
}
fn get_json<T: DeserializeOwned>(&self, uri: &str) -> Result<T, Error> {
@@ -454,5 +454,4 @@ mod tests {
_ => panic!("Expected body"),
}
}
}