##// END OF EJS Templates
rust-clippy: refactor complex type...
Raphaël Gomès -
r50820:49131579 default
parent child Browse files
Show More
@@ -53,10 +53,13 b" fn find_item<'a>("
53 }
53 }
54 }
54 }
55
55
56 // Tuple of (missing, found) paths in the manifest
57 type ManifestQueryResponse<'a> = (Vec<(&'a HgPath, Node)>, Vec<&'a HgPath>);
58
56 fn find_files_in_manifest<'query>(
59 fn find_files_in_manifest<'query>(
57 manifest: &Manifest,
60 manifest: &Manifest,
58 query: impl Iterator<Item = &'query HgPath>,
61 query: impl Iterator<Item = &'query HgPath>,
59 ) -> Result<(Vec<(&'query HgPath, Node)>, Vec<&'query HgPath>), HgError> {
62 ) -> Result<ManifestQueryResponse<'query>, HgError> {
60 let mut manifest = put_back(manifest.iter());
63 let mut manifest = put_back(manifest.iter());
61 let mut res = vec![];
64 let mut res = vec![];
62 let mut missing = vec![];
65 let mut missing = vec![];
General Comments 0
You need to be logged in to leave comments. Login now