mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-26 06:30:29 +00:00
refactor: clippy::default_trait_access (#974)
This commit is contained in:
parent
8536760e78
commit
01418eb7c2
2 changed files with 10 additions and 9 deletions
|
@ -65,6 +65,7 @@ serde_json = "1.0.109"
|
|||
unsafe_code = "forbid"
|
||||
[lints.clippy]
|
||||
cloned_instead_of_copied = "warn"
|
||||
default_trait_access = "warn"
|
||||
explicit_iter_loop = "warn"
|
||||
implicit_clone = "warn"
|
||||
inefficient_to_string = "warn"
|
||||
|
|
|
@ -223,16 +223,16 @@ pub struct Table<'a> {
|
|||
impl<'a> Default for Table<'a> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
rows: Default::default(),
|
||||
header: Default::default(),
|
||||
footer: Default::default(),
|
||||
widths: Default::default(),
|
||||
rows: Vec::new(),
|
||||
header: None,
|
||||
footer: None,
|
||||
widths: Vec::new(),
|
||||
column_spacing: 1,
|
||||
block: Default::default(),
|
||||
style: Default::default(),
|
||||
highlight_style: Default::default(),
|
||||
highlight_symbol: Default::default(),
|
||||
highlight_spacing: Default::default(),
|
||||
block: None,
|
||||
style: Style::new(),
|
||||
highlight_style: Style::new(),
|
||||
highlight_symbol: Text::default(),
|
||||
highlight_spacing: HighlightSpacing::default(),
|
||||
flex: Flex::Start,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue