diff options
| author | Kapten Z∅∅m <55669224+default-username-852@users.noreply.github.com> | 2021-01-04 22:46:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-04 22:46:58 +0100 |
| commit | 50b322f4ef974765a2948dfb08b1c9e8128b1bed (patch) | |
| tree | 88d41a434b3a0c242ac7b35c6afefff0f75ee656 /mumd/src/state/server.rs | |
| parent | 1af9b90133a8d6102a09102bbd6f726f598c24fc (diff) | |
| parent | be7748be2f1e9d1e88ebd093da9eec16d1ad4049 (diff) | |
| download | mum-50b322f4ef974765a2948dfb08b1c9e8128b1bed.tar.gz | |
Merge branch 'main' into noise-gate
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> { |
