[pbs-devel] [PATCH pbs 5/6] clippy fixes: Box::new(_) of default value

Maximiliano Sandoval m.sandoval at proxmox.com
Fri Jun 16 09:35:40 CEST 2023


https://rust-lang.github.io/rust-clippy/master/index.html#box_default
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 src/acme/plugin.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/acme/plugin.rs b/src/acme/plugin.rs
index 478d0666..5fe8993d 100644
--- a/src/acme/plugin.rs
+++ b/src/acme/plugin.rs
@@ -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),
     }))
-- 
2.39.2






More information about the pbs-devel mailing list