--- a/rust/rhg/src/commands/debugignorerhg.rs Fri Jan 06 18:52:04 2023 +0100
+++ b/rust/rhg/src/commands/debugignorerhg.rs Mon Jan 09 17:40:03 2023 +0100
@@ -23,10 +23,10 @@
let (ignore_matcher, warnings) = get_ignore_matcher(
vec![ignore_file],
- &repo.working_directory_path().to_owned(),
+ repo.working_directory_path(),
&mut |_source, _pattern_bytes| (),
)
- .map_err(|e| StatusError::from(e))?;
+ .map_err(StatusError::from)?;
if !warnings.is_empty() {
warn!("Pattern warnings: {:?}", &warnings);