diff rust/rhg/src/commands/debugrhgsparse.rs @ 49914:58074252db3c

rust: run `cargo clippy` These automatic fixes are good to have because they make the code more idiomatic and less surprising. The transform from `sort` -> `sort_unstable` is questionable, but this is only in a test, so it doesn't matter in our case.
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 09 Jan 2023 17:40:03 +0100
parents 37bc3edef76f
children
line wrap: on
line diff
--- a/rust/rhg/src/commands/debugrhgsparse.rs	Fri Jan 06 18:52:04 2023 +0100
+++ b/rust/rhg/src/commands/debugrhgsparse.rs	Mon Jan 09 17:40:03 2023 +0100
@@ -24,7 +24,7 @@
 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> {
     let repo = invocation.repo?;
 
-    let (matcher, _warnings) = hg::sparse::matcher(&repo).unwrap();
+    let (matcher, _warnings) = hg::sparse::matcher(repo).unwrap();
     let files = invocation.subcommand_args.get_many::<OsString>("files");
     if let Some(files) = files {
         let files: Vec<&OsStr> = files