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:
Maximiliano Sandoval 2023-06-16 10:27:30 +02:00 committed by Wolfgang Bumiller
parent f7c8903e22
commit 0d4b7f0271

View File

@ -35,7 +35,7 @@ pub(crate) fn get_acme_plugin(
}
"standalone" => {
// this one has no config
Box::new(StandaloneServer::default())
Box::<StandaloneServer>::default()
}
other => bail!("missing implementation for plugin type '{}'", other),
}))