Skip to content

Commit

Permalink
perf: clippy::trivially_copy_pass_by_ref (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo authored and joshka committed Mar 4, 2024
1 parent a13867f commit 183c07e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -69,6 +69,7 @@ explicit_iter_loop = "warn"
missing_const_for_fn = "warn"
needless_for_each = "warn"
semicolon_if_nothing_returned = "warn"
trivially_copy_pass_by_ref = "warn"
use_self = "warn"

[features]
Expand Down
2 changes: 1 addition & 1 deletion src/backend/crossterm.rs
Expand Up @@ -311,7 +311,7 @@ struct ModifierDiff {
}

impl ModifierDiff {
fn queue<W>(&self, mut w: W) -> io::Result<()>
fn queue<W>(self, mut w: W) -> io::Result<()>
where
W: io::Write,
{
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/chart.rs
Expand Up @@ -178,7 +178,7 @@ pub enum LegendPosition {

impl LegendPosition {
fn layout(
&self,
self,
area: Rect,
legend_width: u16,
legend_height: u16,
Expand Down

0 comments on commit 183c07e

Please sign in to comment.