mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 12:25:58 +02:00
Clippy fixes for new Rust version (#3392)
This commit is contained in:
@ -59,8 +59,8 @@ impl NuConfig {
|
||||
};
|
||||
|
||||
Ok(NuConfig {
|
||||
file_path,
|
||||
vars,
|
||||
file_path,
|
||||
modified_at,
|
||||
})
|
||||
}
|
||||
|
@ -16,19 +16,11 @@ pub struct Labels {
|
||||
|
||||
impl Labels {
|
||||
pub fn at(&self, idx: usize) -> Option<&str> {
|
||||
if let Some(k) = self.x.get(idx) {
|
||||
Some(&k[..])
|
||||
} else {
|
||||
None
|
||||
}
|
||||
self.x.get(idx).map(|k| &k[..])
|
||||
}
|
||||
|
||||
pub fn at_split(&self, idx: usize) -> Option<&str> {
|
||||
if let Some(k) = self.y.get(idx) {
|
||||
Some(&k[..])
|
||||
} else {
|
||||
None
|
||||
}
|
||||
self.y.get(idx).map(|k| &k[..])
|
||||
}
|
||||
|
||||
pub fn grouped(&self) -> impl Iterator<Item = &String> {
|
||||
|
Reference in New Issue
Block a user