tree-wide: fix needless borrows

found and fixed via clippy

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler committed 2021-12-30 13:55:33 +01:00
1 parent a0c69902c8
commit 9a37bd6c84
104 files changed
+238 -241

No files matched your search

+1 -4
View File
@@ -556,10 +556,7 @@ impl Authid {
}
pub fn tokenname(&self) -> Option<&TokennameRef> {
match &self.tokenname {
Some(name) => Some(&name),
None => None,
}
self.tokenname.as_deref()
}
/// Get the "root@pam" auth id.