File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,10 @@ use git2::{Commit, Oid};
5
5
6
6
use super :: { repo, CommitId , RepoPath } ;
7
7
8
- /// Performs a Git revision walk on `repo_path`, optionally bounded by `start` and `end` commits,
9
- /// sorted according to `sort`. The revwalk iterator bound by repository's lifetime is exposed through
10
- /// the `iter_fn`.
11
- ///
8
+ /// Performs a Git revision walk.
12
9
///
10
+ /// The revwalk is optionally bounded by `start` and `end` commits, sorted according to `sort`.
11
+ /// The revwalk iterator bound by repository's lifetime is exposed through the `iter_fn`.
13
12
pub fn revwalk < R > (
14
13
repo_path : & RepoPath ,
15
14
start : Bound < & CommitId > ,
@@ -31,10 +30,13 @@ pub fn revwalk<R>(
31
30
if let Some ( e) = end {
32
31
revwalk. push ( e. id ( ) ) ?;
33
32
}
34
- let ret = iter_fn ( & mut revwalk. map ( |r| {
35
- r. map_err ( |x| crate :: Error :: Generic ( x. to_string ( ) ) )
36
- } ) ) ;
37
- ret
33
+ {
34
+ #![ allow( clippy:: let_and_return) ]
35
+ let ret = iter_fn ( & mut revwalk. map ( |r| {
36
+ r. map_err ( |x| crate :: Error :: Generic ( x. to_string ( ) ) )
37
+ } ) ) ;
38
+ ret
39
+ }
38
40
}
39
41
40
42
fn resolve < ' r > (
You can’t perform that action at this time.
0 commit comments