diff options
| author | Eskil Queseth <eskilq@kth.se> | 2021-06-13 20:58:59 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2021-06-13 20:58:59 +0200 |
| commit | 817a949cfc3b2a8687d7621eae5fdb49667adac2 (patch) | |
| tree | 9605631980b018703895bd2b14006716594338a8 /mumd/src | |
| parent | e799939afee27c47f9d78d987f50d9846b58ea8c (diff) | |
| download | mum-817a949cfc3b2a8687d7621eae5fdb49667adac2.tar.gz | |
add unused_qualifications lint
Diffstat (limited to 'mumd/src')
| -rw-r--r-- | mumd/src/main.rs | 1 | ||||
| -rw-r--r-- | mumd/src/state/user.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/mumd/src/main.rs b/mumd/src/main.rs index 536e382..a53e1a0 100644 --- a/mumd/src/main.rs +++ b/mumd/src/main.rs @@ -6,6 +6,7 @@ #![warn(unused_crate_dependencies)] #![warn(unused_import_braces)] #![warn(unused_lifetimes)] +#![warn(unused_qualifications)] #![deny(keyword_idents)] #![deny(macro_use_extern_crate)] #![deny(missing_abi)] diff --git a/mumd/src/state/user.rs b/mumd/src/state/user.rs index 5770bca..0ffde90 100644 --- a/mumd/src/state/user.rs +++ b/mumd/src/state/user.rs @@ -78,7 +78,7 @@ impl User { } } - pub fn apply_user_diff(&mut self, diff: &crate::state::user::UserDiff) { + pub fn apply_user_diff(&mut self, diff: &UserDiff) { if let Some(comment) = diff.comment.clone() { self.comment = Some(comment); } |
