rust-clippy: simplify return type of debug function
This makes the type a little bit more readable.
--- 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<Item = Result<DebugDirstateTuple, DirstateV2ParseError>>
+ + Send
+ '_,
> {
let map = self.get_map();