mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-12 16:48:20 +00:00
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:
parent
da2e372b19
commit
039d3374d7
@ -556,10 +556,7 @@ impl Authid {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn tokenname(&self) -> Option<&TokennameRef> {
|
pub fn tokenname(&self) -> Option<&TokennameRef> {
|
||||||
match &self.tokenname {
|
self.tokenname.as_deref()
|
||||||
Some(name) => Some(&name),
|
|
||||||
None => None,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the "root@pam" auth id.
|
/// Get the "root@pam" auth id.
|
||||||
|
Loading…
Reference in New Issue
Block a user