<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<div dir="auto">
<div dir="auto">Yk </div><div dir='auto'><br></div>
<div id="aqm-original" style="color: black;">
<div dir="auto">In data 16 giugno 2023 10:27:35 Maximiliano Sandoval <m.sandoval@proxmox.com> ha scritto:</div>
<div><br></div>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #808080; padding-left: 0.75ex;">
<div dir="auto">From rust-lang:</div>
<div dir="auto"><br></div>
<blockquote type="cite" class="gmail_quote" style="margin: 0 0 0 0.75ex; border-left: 1px solid #0099CC; padding-left: 0.75ex;">
<div dir="auto">Why is this bad?</div>
<div dir="auto"><br></div>
<div dir="auto">First, it’s more complex, involving two calls instead of one. Second,</div>
<div dir="auto">Box::default() can be faster in certain cases.</div>
</blockquote>
<div dir="auto"><br></div>
<div dir="auto">Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com></div>
<div dir="auto">---</div>
<div dir="auto"> src/acme/plugin.rs | 2 +-</div>
<div dir="auto"> 1 file changed, 1 insertion(+), 1 deletion(-)</div>
<div dir="auto"><br></div>
<div dir="auto">diff --git a/src/acme/plugin.rs b/src/acme/plugin.rs</div>
<div dir="auto">index 478d0666..5fe8993d 100644</div>
<div dir="auto">--- a/src/acme/plugin.rs</div>
<div dir="auto">+++ b/src/acme/plugin.rs</div>
<div dir="auto">@@ -35,7 +35,7 @@ pub(crate) fn get_acme_plugin(</div>
<div dir="auto"> }</div>
<div dir="auto"> "standalone" => {</div>
<div dir="auto"> // this one has no config</div>
<div dir="auto">- Box::new(StandaloneServer::default())</div>
<div dir="auto">+ Box::<StandaloneServer>::default()</div>
<div dir="auto"> }</div>
<div dir="auto"> other => bail!("missing implementation for plugin type '{}'", other),</div>
<div dir="auto"> }))</div>
<div dir="auto">-- </div>
<div dir="auto">2.39.2</div>
<div dir="auto"><br></div>
<div dir="auto"><br></div>
<div dir="auto"><br></div>
<div dir="auto">_______________________________________________</div>
<div dir="auto">pbs-devel mailing list</div>
<div dir="auto">pbs-devel@lists.proxmox.com</div>
<div dir="auto">https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel</div>
</blockquote>
</div><div dir="auto"><br></div>
</div></body>
</html>