Fix clippy warnings (#151)

This commit is contained in:
Paolo Barbolini 2022-04-22 22:05:38 +02:00 committed by GitHub
parent 2b395df4a2
commit aee38f5c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,11 +276,11 @@ impl Engine {
let manifest_path = path.join(RelativePath::new("Cargo.toml"));
let mut service = self.retrieve_file_at_path.clone();
Ok(service.call((repo_path.clone(), manifest_path)).await?)
service.call((repo_path.clone(), manifest_path)).await
}
async fn fetch_advisory_db(&self) -> Result<Arc<Database>, Error> {
Ok(self.fetch_advisory_db.cached_query(()).await?)
self.fetch_advisory_db.cached_query(()).await
}
}