mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-10 07:04:17 +00:00
refactor: clippy::equatable_if_let (#974)
This commit is contained in:
parent
01418eb7c2
commit
f7f66928a8
2 changed files with 2 additions and 1 deletions
|
@ -66,6 +66,7 @@ unsafe_code = "forbid"
|
|||
[lints.clippy]
|
||||
cloned_instead_of_copied = "warn"
|
||||
default_trait_access = "warn"
|
||||
equatable_if_let = "warn"
|
||||
explicit_iter_loop = "warn"
|
||||
implicit_clone = "warn"
|
||||
inefficient_to_string = "warn"
|
||||
|
|
|
@ -984,7 +984,7 @@ impl WidgetRef for Chart<'_> {
|
|||
coords: dataset.data,
|
||||
color: dataset.style.fg.unwrap_or(Color::Reset),
|
||||
});
|
||||
if let GraphType::Line = dataset.graph_type {
|
||||
if dataset.graph_type == GraphType::Line {
|
||||
for data in dataset.data.windows(2) {
|
||||
ctx.draw(&CanvasLine {
|
||||
x1: data[0].0,
|
||||
|
|
Loading…
Reference in a new issue