From 50683f0c3c9c0dde73bc0002b4fa7762227afaf4 Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Tue, 6 Aug 2019 20:34:39 -0700 Subject: [PATCH] Removed unnecessary dereference in Store::find Prefer no dereference when it is not needed. `todo` has type `&&Item`. Argument needs to be `&Item`, but this is converted via deref coercion. --- examples/todomvc/src/store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/todomvc/src/store.rs b/examples/todomvc/src/store.rs index cb803b26e..d1028da8e 100644 --- a/examples/todomvc/src/store.rs +++ b/examples/todomvc/src/store.rs @@ -85,7 +85,7 @@ impl Store { Some( self.data .iter() - .filter(|todo| query.matches(*todo)) + .filter(|todo| query.matches(todo)) .collect(), ) }