Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/ancestors.rs @ 52291:f90796d33aa0
rust: fix clippy lints
These were highlighted by the latest version of clippy (1.82.0).
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 29 Oct 2024 11:35:01 +0100 |
parents | b08c5fbe0e70 |
children | e9ced84aeef4 |
line wrap: on
line diff
--- a/rust/hg-core/src/ancestors.rs Tue Oct 29 11:00:04 2024 +0100 +++ b/rust/hg-core/src/ancestors.rs Tue Oct 29 11:35:01 2024 +0100 @@ -206,11 +206,10 @@ new_bases .into_iter() .filter(|&rev| rev != NULL_REVISION) - .map(|r| { + .inspect(|&r| { if r > max_base { max_base = r; } - r }), ); self.max_base = max_base;