From 51552212ee3ec6e93e38840c052ecf175e5de26e Mon Sep 17 00:00:00 2001 From: banditopazzo Date: Mon, 14 Oct 2024 16:48:30 +0200 Subject: [PATCH] chore: fix clippy --- kepler/src/api/cves.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> {