ran clippy fix

This commit is contained in:
2026-02-27 11:04:41 -05:00
parent c508180228
commit c559d1cc75
15 changed files with 44 additions and 69 deletions

View File

@@ -1,9 +1,8 @@
use std::{
cell::RefCell,
cmp::Ordering,
collections::{HashMap, HashSet, VecDeque, hash_map::Entry},
fmt::Display,
ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Deref},
ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign},
os::unix::fs::PermissionsExt,
str::FromStr,
time::Duration,
@@ -1052,7 +1051,7 @@ impl MetaTab {
&mut self.comp_specs
}
pub fn get_comp_spec(&self, cmd: &str) -> Option<Box<dyn CompSpec>> {
self.comp_specs.get(cmd).map(|spec| spec.clone())
self.comp_specs.get(cmd).cloned()
}
pub fn set_comp_spec(&mut self, cmd: String, spec: Box<dyn CompSpec>) {
self.comp_specs.insert(cmd, spec);