diff --git a/kepler/src/api/cves.rs b/kepler/src/api/cves.rs index 5f20228..45717c3 100644 --- a/kepler/src/api/cves.rs +++ b/kepler/src/api/cves.rs @@ -24,7 +24,7 @@ impl CveLruCache { fn get(&self, query: &Query) -> Option> { let mut inner = self.0.lock().unwrap(); - inner.get(query).map(Vec::clone) + inner.get(query).cloned() } fn put(&self, query: Query, cves: Vec) -> Option> {