# HG changeset patch # User Raphaël Gomès # Date 1673285442 -3600 # Node ID 66ffe3749a484ef222fb361593d7ee59f483e822 # Parent 547d6817e0c32e60cae0a458baad25526fb68c76 rust-clippy: simplify return type of debug function This makes the type a little bit more readable. diff -r 547d6817e0c3 -r 66ffe3749a48 rust/hg-core/src/dirstate_tree/dirstate_map.rs --- a/rust/hg-core/src/dirstate_tree/dirstate_map.rs Mon Jan 09 18:27:53 2023 +0100 +++ b/rust/hg-core/src/dirstate_tree/dirstate_map.rs Mon Jan 09 18:30:42 2023 +0100 @@ -939,6 +939,8 @@ }) } +type DebugDirstateTuple<'a> = (&'a HgPath, (u8, i32, i32, i32)); + impl OwningDirstateMap { pub fn clear(&mut self) { self.with_dmap_mut(|map| { @@ -1477,12 +1479,8 @@ &self, all: bool, ) -> Box< - dyn Iterator< - Item = Result< - (&HgPath, (u8, i32, i32, i32)), - DirstateV2ParseError, - >, - > + Send + dyn Iterator> + + Send + '_, > { let map = self.get_map();