]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/bin/docgen.rs
tree-wide: fix needless borrows
[proxmox-backup.git] / src / bin / docgen.rs
index 4be4f1f202fbcf8670227ec5b5304c25b1d3a27c..a71c9e8b3b26a96e043c1c98a63aaa254b2c7c2f 100644 (file)
@@ -270,7 +270,7 @@ fn dump_api_method_schema(
 
     data["parameters"] = dump_property_schema(&api_method.parameters);
 
-    let mut returns = dump_schema(&api_method.returns.schema);
+    let mut returns = dump_schema(api_method.returns.schema);
     if api_method.returns.optional {
         returns["optional"] = 1.into();
     }