aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state/server.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-01-01 22:32:12 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-01-01 22:40:08 +0100
commit1c8b7316503d3ab710d3d3ec241b85e76b9a42be (patch)
tree95e85a9f7bd26b6901e6cbe5e9ca29f8d60053e5 /mumd/src/state/server.rs
parent67364577263943e815be9ba700c10845698e116d (diff)
downloadmum-1c8b7316503d3ab710d3d3ec241b85e76b9a42be.tar.gz
clippy pass
Diffstat (limited to 'mumd/src/state/server.rs')
-rw-r--r--mumd/src/state/server.rs2
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> {