rust/hg-cpython/src/dirstate/status.rs
changeset 51117 532e74ad3ff6
parent 49914 58074252db3c
child 51599 68929cf3c0c6
--- a/rust/hg-cpython/src/dirstate/status.rs	Mon Nov 06 11:02:18 2023 +0100
+++ b/rust/hg-cpython/src/dirstate/status.rs	Mon Nov 06 11:06:08 2023 +0100
@@ -273,7 +273,7 @@
                 py_warnings.append(
                     py,
                     (
-                        PyBytes::new(py, &get_bytes_from_path(&file)),
+                        PyBytes::new(py, &get_bytes_from_path(file)),
                         PyBytes::new(py, syn),
                     )
                         .to_py_object(py)
@@ -282,7 +282,7 @@
             }
             PatternFileWarning::NoSuchFile(file) => py_warnings.append(
                 py,
-                PyBytes::new(py, &get_bytes_from_path(&file)).into_object(),
+                PyBytes::new(py, &get_bytes_from_path(file)).into_object(),
             ),
         }
     }