diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-02 18:47:10 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-02 18:47:10 +0100 |
| commit | be7748be2f1e9d1e88ebd093da9eec16d1ad4049 (patch) | |
| tree | 14c118236500a6ffff99bedd1487a7d2cbca009c /mumd/src/state.rs | |
| parent | 28f0ccd4639865e10690022c8164ba4c5b337102 (diff) | |
| parent | 1c8b7316503d3ab710d3d3ec241b85e76b9a42be (diff) | |
| download | mum-be7748be2f1e9d1e88ebd093da9eec16d1ad4049.tar.gz | |
Merge remote-tracking branch 'origin/clippy' into main
Diffstat (limited to 'mumd/src/state.rs')
| -rw-r--r-- | mumd/src/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index 8fa05ae..d1f64a9 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -216,7 +216,7 @@ impl State { .unwrap() .users_mut() .iter_mut() - .find(|(_, user)| user.name() == &string); + .find(|(_, user)| user.name() == string); let (id, user) = match id { Some(id) => (*id.0, id.1), @@ -405,7 +405,7 @@ impl State { .unwrap() .users() .iter() - .find(|e| e.1.name() == &string) + .find(|e| e.1.name() == string) .map(|e| *e.0) { None => return now!(Err(Error::InvalidUsernameError(string))), |
