diff rust/hg-core/src/config/mod.rs @ 51118:532e74ad3ff6

rust: run a clippy pass with the latest stable version Our current version of clippy is older than the latest stable. The newest version has new lints that are moslty good advice, so let's apply them ahead of time. This has the added benefit of reducing the noise for developpers like myself that use clippy as an IDE helper, as well as being more prepared for a future clippy upgrade.
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 06 Nov 2023 11:06:08 +0100
parents 8343947af6a7
children 0dbf6a5ccf5f
line wrap: on
line diff
--- a/rust/hg-core/src/config/mod.rs	Mon Nov 06 11:02:18 2023 +0100
+++ b/rust/hg-core/src/config/mod.rs	Mon Nov 06 11:06:08 2023 +0100
@@ -758,7 +758,7 @@
         let tmpdir = tempfile::tempdir().unwrap();
         let tmpdir_path = tmpdir.path();
         let mut included_file =
-            File::create(&tmpdir_path.join("included.rc")).unwrap();
+            File::create(tmpdir_path.join("included.rc")).unwrap();
 
         included_file.write_all(b"[section]\nitem=value1").unwrap();
         let base_config_path = tmpdir_path.join("base.rc");