aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state/server.rs
diff options
context:
space:
mode:
authorKapten Z∅∅m <55669224+default-username-852@users.noreply.github.com>2021-01-04 22:46:58 +0100
committerGitHub <noreply@github.com>2021-01-04 22:46:58 +0100
commit50b322f4ef974765a2948dfb08b1c9e8128b1bed (patch)
tree88d41a434b3a0c242ac7b35c6afefff0f75ee656 /mumd/src/state/server.rs
parent1af9b90133a8d6102a09102bbd6f726f598c24fc (diff)
parentbe7748be2f1e9d1e88ebd093da9eec16d1ad4049 (diff)
downloadmum-50b322f4ef974765a2948dfb08b1c9e8128b1bed.tar.gz
Merge branch 'main' into noise-gate
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> {