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.
This commit is contained in:
Benjamin Lee 2019-08-06 20:34:39 -07:00 committed by GitHub
parent 0ab6956747
commit 50683f0c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ impl Store {
Some(
self.data
.iter()
.filter(|todo| query.matches(*todo))
.filter(|todo| query.matches(todo))
.collect(),
)
}