Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubelotix committed Jun 16, 2024
1 parent 9ad647e commit ce923ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion daemon/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ impl SearchPark {
id
}

#[allow(clippy::map_clone)]
pub async fn get_query(self: Arc<Self>, id: usize) -> Option<Arc<Query>> {
let searches = self.searches.read().await;
searches.get(&id).map(|s| Arc::clone(&s.query))
Expand Down
1 change: 1 addition & 0 deletions daemon/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![allow(clippy::module_inception)]
#![allow(clippy::map_clone)] /* This lint doesn't make the difference between Arc clones and regular clones */
#![recursion_limit = "256"]

mod result;
Expand Down

0 comments on commit ce923ec

Please sign in to comment.