mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-09 05:11:23 +00:00
clippy fixes: Box::new(_) of default value
From rust-lang: > Why is this bad? > > First, it’s more complex, involving two calls instead of one. Second, > Box::default() can be faster in certain cases. Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
This commit is contained in:
parent
f7c8903e22
commit
0d4b7f0271
@ -35,7 +35,7 @@ pub(crate) fn get_acme_plugin(
|
|||||||
}
|
}
|
||||||
"standalone" => {
|
"standalone" => {
|
||||||
// this one has no config
|
// this one has no config
|
||||||
Box::new(StandaloneServer::default())
|
Box::<StandaloneServer>::default()
|
||||||
}
|
}
|
||||||
other => bail!("missing implementation for plugin type '{}'", other),
|
other => bail!("missing implementation for plugin type '{}'", other),
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user