# HG changeset patch # User Valentin Gatien-Baron # Date 1589732912 14400 # Node ID 73d6ce2746d2c093aed702e024d92675b057c48b # Parent 526d69eeea319cff12972f620401f95975bde8e1 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 diff -r 526d69eeea31 -r 73d6ce2746d2 rust/hg-core/src/dirstate/status.rs --- 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, )> { // 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