# HG changeset patch # User Valentin Gatien-Baron # Date 2020-05-17 16:28:32 # 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 --git a/rust/hg-core/src/dirstate/status.rs b/rust/hg-core/src/dirstate/status.rs --- a/rust/hg-core/src/dirstate/status.rs +++ b/rust/hg-core/src/dirstate/status.rs @@ -847,7 +847,7 @@ pub fn status<'a: 'c, 'b: 'c, 'c>( 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