tweak some pattern matches to address a new clippy warning

This commit is contained in:
Mira Ressel
2023-03-16 15:46:34 +01:00
parent a01de76ca1
commit 058082fcb0
6 changed files with 7 additions and 7 deletions
@@ -1291,7 +1291,7 @@ impl<T: Config> Pallet<T> {
// First, we need to decide what we should use as the base configuration.
let mut base_config = pending_configs
.last()
.map(|&(_, ref config)| config.clone())
.map(|(_, config)| config.clone())
.unwrap_or_else(Self::config);
let base_config_consistent = base_config.check_consistency().is_ok();