comparison rust/hg-core/src/dirstate/status.rs @ 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 c802ec4f7196
children ce8fe77102f4
comparison
equal deleted inserted replaced
44841:526d69eeea31 44842:73d6ce2746d2
845 ) -> StatusResult<( 845 ) -> StatusResult<(
846 (Vec<Cow<'c, HgPath>>, DirstateStatus<'c>), 846 (Vec<Cow<'c, HgPath>>, DirstateStatus<'c>),
847 Vec<PatternFileWarning>, 847 Vec<PatternFileWarning>,
848 )> { 848 )> {
849 // Needs to outlive `dir_ignore_fn` since it's captured. 849 // Needs to outlive `dir_ignore_fn` since it's captured.
850 let mut ignore_fn: IgnoreFnType; 850 let ignore_fn: IgnoreFnType;
851 851
852 // Only involve real ignore mechanism if we're listing unknowns or ignored. 852 // Only involve real ignore mechanism if we're listing unknowns or ignored.
853 let (dir_ignore_fn, warnings): (IgnoreFnType, _) = if options.list_ignored 853 let (dir_ignore_fn, warnings): (IgnoreFnType, _) = if options.list_ignored
854 || options.list_unknown 854 || options.list_unknown
855 { 855 {