Mercurial > hg
changeset 49917:4c71c215bcfe
rust-clippy: factor an `if` with the same duplicated clause
Unlike the next changeset, this if is not really made clearer by keeping the
cases separate.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Mon, 09 Jan 2023 18:03:24 +0100 |
parents | 321e2b7bc95c |
children | 4158608f7786 |
files | rust/hg-core/src/revlog/revlog.rs |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/revlog.rs Mon Jan 09 18:00:56 2023 +0100 +++ b/rust/hg-core/src/revlog/revlog.rs Mon Jan 09 18:03:24 2023 +0100 @@ -111,9 +111,7 @@ Some(Box::new(data_mmap)) }; - let nodemap = if index.is_inline() { - None - } else if !use_nodemap { + let nodemap = if index.is_inline() || !use_nodemap { None } else { NodeMapDocket::read_from_file(store_vfs, index_path)?.map(