Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
banditopazzo committed Oct 14, 2024
1 parent 860b064 commit 5155221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kepler/src/api/cves.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl CveLruCache {

fn get(&self, query: &Query) -> Option<Vec<MatchedCVE>> {
let mut inner = self.0.lock().unwrap();
inner.get(query).map(Vec::clone)
inner.get(query).cloned()
}

fn put(&self, query: Query, cves: Vec<MatchedCVE>) -> Option<Vec<MatchedCVE>> {
Expand Down

0 comments on commit 5155221

Please sign in to comment.