comparison rust/hg-core/src/dirstate_tree/status.rs @ 51117:532e74ad3ff6

rust: run a clippy pass with the latest stable version Our current version of clippy is older than the latest stable. The newest version has new lints that are moslty good advice, so let's apply them ahead of time. This has the added benefit of reducing the noise for developpers like myself that use clippy as an IDE helper, as well as being more prepared for a future clippy upgrade.
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 06 Nov 2023 11:06:08 +0100
parents 76387f79befe
children 771598067be2
comparison
equal deleted inserted replaced
51116:d58e754f2db0 51117:532e74ad3ff6
247 parent, 247 parent,
248 cache: OnceCell::new(), 248 cache: OnceCell::new(),
249 } 249 }
250 } 250 }
251 251
252 fn force<'b>(&self, ignore_fn: &IgnoreFnType<'b>) -> bool { 252 fn force(&self, ignore_fn: &IgnoreFnType<'_>) -> bool {
253 match self.parent { 253 match self.parent {
254 None => false, 254 None => false,
255 Some(parent) => { 255 Some(parent) => {
256 *(self.cache.get_or_init(|| { 256 *(self.cache.get_or_init(|| {
257 parent.force(ignore_fn) || ignore_fn(self.path) 257 parent.force(ignore_fn) || ignore_fn(self.path)