Mercurial > hg
diff rust/hg-core/src/vfs.rs @ 49914:58074252db3c
rust: run `cargo clippy`
These automatic fixes are good to have because they make the code
more idiomatic and less surprising.
The transform from `sort` -> `sort_unstable` is questionable, but this is
only in a test, so it doesn't matter in our case.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Mon, 09 Jan 2023 17:40:03 +0100 |
parents | ffd4b1f1c9cb |
children | a6b8b1ab9116 |
line wrap: on
line diff
--- a/rust/hg-core/src/vfs.rs Fri Jan 06 18:52:04 2023 +0100 +++ b/rust/hg-core/src/vfs.rs Mon Jan 09 17:40:03 2023 +0100 @@ -48,7 +48,7 @@ match self.read(relative_path) { Err(e) => match &e { HgError::IoError { error, .. } => match error.kind() { - ErrorKind::NotFound => return Ok(None), + ErrorKind::NotFound => Ok(None), _ => Err(e), }, _ => Err(e),