mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Use nightly clippy to kill dead code/fix style (#12334)
- **Remove duplicated imports** - **Remove unused field in `CompletionOptions`** - **Remove unused struct in `nu-table`** - **Clarify generic bounds** - **Simplify a subtrait bound for `ExactSizeIterator`** - **Use `unwrap_or_default`** - **Use `Option` directly instead of empty string** - **Elide unneeded clone in `to html`**
This commit is contained in:
committed by
GitHub
parent
ff2aba7ae3
commit
e889679d42
@ -457,17 +457,6 @@ fn load_theme(
|
||||
}
|
||||
}
|
||||
|
||||
struct FooterStyle;
|
||||
|
||||
impl<R: ExactRecords, D> TableOption<R, D, ColoredConfig> for FooterStyle {
|
||||
fn change(self, records: &mut R, cfg: &mut ColoredConfig, _: &mut D) {
|
||||
if let Some(line) = cfg.get_horizontal_line(1).cloned() {
|
||||
let count_rows = records.count_rows();
|
||||
cfg.insert_horizontal_line(count_rows - 1, line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn maybe_truncate_columns(
|
||||
data: &mut NuRecords,
|
||||
theme: &TableTheme,
|
||||
|
Reference in New Issue
Block a user