diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-01 22:32:12 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-01 22:40:08 +0100 |
| commit | 1c8b7316503d3ab710d3d3ec241b85e76b9a42be (patch) | |
| tree | 95e85a9f7bd26b6901e6cbe5e9ca29f8d60053e5 /mumd/src/state/server.rs | |
| parent | 67364577263943e815be9ba700c10845698e116d (diff) | |
| download | mum-1c8b7316503d3ab710d3d3ec241b85e76b9a42be.tar.gz | |
clippy pass
Diffstat (limited to 'mumd/src/state/server.rs')
| -rw-r--r-- | mumd/src/state/server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/state/server.rs b/mumd/src/state/server.rs index a065df0..8a256b6 100644 --- a/mumd/src/state/server.rs +++ b/mumd/src/state/server.rs @@ -107,7 +107,7 @@ impl Server { } pub fn username(&self) -> Option<&str> { - self.username.as_ref().map(|e| e.as_str()) + self.username.as_deref() } pub fn username_mut(&mut self) -> &mut Option<String> { |
