Show More
@@ -2,7 +2,6 b' use crate::error::CommandError;' | |||||
2 | use crate::ui::Ui; |
|
2 | use crate::ui::Ui; | |
3 | use crate::utils::path_utils::RelativizePaths; |
|
3 | use crate::utils::path_utils::RelativizePaths; | |
4 | use clap::Arg; |
|
4 | use clap::Arg; | |
5 | use hg::errors::HgError; |
|
|||
6 | use hg::operations::list_rev_tracked_files; |
|
5 | use hg::operations::list_rev_tracked_files; | |
7 | use hg::repo::Repo; |
|
6 | use hg::repo::Repo; | |
8 | use hg::utils::filter_map_results; |
|
7 | use hg::utils::filter_map_results; | |
@@ -85,11 +84,14 b' pub fn run(invocation: &crate::CliInvoca' | |||||
85 | } |
|
84 | } | |
86 | } |
|
85 | } | |
87 |
|
86 | |||
88 | fn display_files<'a>( |
|
87 | fn display_files<'a, E>( | |
89 | ui: &Ui, |
|
88 | ui: &Ui, | |
90 | repo: &Repo, |
|
89 | repo: &Repo, | |
91 |
files: impl IntoIterator<Item = Result<&'a HgPath, |
|
90 | files: impl IntoIterator<Item = Result<&'a HgPath, E>>, | |
92 |
) -> Result<(), CommandError> |
|
91 | ) -> Result<(), CommandError> | |
|
92 | where | |||
|
93 | CommandError: From<E>, | |||
|
94 | { | |||
93 | let mut stdout = ui.stdout_buffer(); |
|
95 | let mut stdout = ui.stdout_buffer(); | |
94 | let mut any = false; |
|
96 | let mut any = false; | |
95 |
|
97 |
General Comments 0
You need to be logged in to leave comments.
Login now