Mercurial > hg
changeset 44842:73d6ce2746d2
rust: fix warning about unnecessary mut
If there's a reason to use mut (like compability with older
compilers), then we should stick `#[allow(unused_mut)]` on the
declaration.
Differential Revision: https://phab.mercurial-scm.org/D8538
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Sun, 17 May 2020 12:28:32 -0400 |
parents | 526d69eeea31 |
children | 288328c6711b |
files | rust/hg-core/src/dirstate/status.rs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/dirstate/status.rs Tue Apr 14 06:09:14 2020 +0200 +++ b/rust/hg-core/src/dirstate/status.rs Sun May 17 12:28:32 2020 -0400 @@ -847,7 +847,7 @@ Vec<PatternFileWarning>, )> { // Needs to outlive `dir_ignore_fn` since it's captured. - let mut ignore_fn: IgnoreFnType; + let ignore_fn: IgnoreFnType; // Only involve real ignore mechanism if we're listing unknowns or ignored. let (dir_ignore_fn, warnings): (IgnoreFnType, _) = if options.list_ignored