bless clippy

This commit is contained in:
yukang 2022-11-09 19:23:23 +08:00
parent 9e7d2287cd
commit 91b4e7c4fd

View File

@ -23,6 +23,11 @@ error[E0308]: mismatched types
| |
LL | Some(reference) = cache.data.get(key) { LL | Some(reference) = cache.data.get(key) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
|
help: consider adding `let`
|
LL | let Some(reference) = cache.data.get(key) {
| +++
error: aborting due to 3 previous errors error: aborting due to 3 previous errors