--- 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(),
),
}
}