comparison rust/hg-core/src/operations/cat.rs @ 48234:1837663ac216

rhg: fix formatting error reported by test-check-format-rust.t Differential Revision: https://phab.mercurial-scm.org/D11670
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 14 Oct 2021 22:35:46 -0700
parents 0cc69017d47f
children 027ebad952ac
comparison
equal deleted inserted replaced
48233:c820866c52f9 48234:1837663ac216
102 let file_log = repo.filelog(manifest_file)?; 102 let file_log = repo.filelog(manifest_file)?;
103 let file_node = Node::from_hex_for_repo(node_bytes)?; 103 let file_node = Node::from_hex_for_repo(node_bytes)?;
104 bytes.extend(file_log.data_for_node(file_node)?.data()?); 104 bytes.extend(file_log.data_for_node(file_node)?.data()?);
105 } 105 }
106 106
107 let missing: Vec<HgPathBuf> = missing 107 let missing: Vec<HgPathBuf> =
108 .iter() 108 missing.iter().map(|file| (*file).to_owned()).collect();
109 .map(|file| (*file).to_owned())
110 .collect();
111 Ok(CatOutput { 109 Ok(CatOutput {
112 found_any, 110 found_any,
113 concatenated: bytes, 111 concatenated: bytes,
114 missing, 112 missing,
115 node, 113 node,