diff --git a/clippy.toml b/clippy.toml index 55ac4723..c1291af7 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,3 +1,5 @@ +avoid-breaking-exported-api = false + # https://rust-lang.github.io/rust-clippy/master/index.html#/multiple_crate_versions # ratatui -> bitflags v2.3 # termwiz -> wezterm-blob-leases -> mac_address -> nix -> bitflags v1.3.2 diff --git a/src/layout/rect.rs b/src/layout/rect.rs index ed38292e..3e4a3e94 100644 --- a/src/layout/rect.rs +++ b/src/layout/rect.rs @@ -119,6 +119,7 @@ impl Rect { /// Returns a new `Rect` inside the current one, with the given margin on each side. /// /// If the margin is larger than the `Rect`, the returned `Rect` will have no area. + #[allow(clippy::trivially_copy_pass_by_ref)] // See PR #1008 #[must_use = "method returns the modified value"] pub const fn inner(self, margin: &Margin) -> Self { let doubled_margin_horizontal = margin.horizontal.saturating_mul(2); diff --git a/src/widgets/gauge.rs b/src/widgets/gauge.rs index e06d32bc..ccab0815 100644 --- a/src/widgets/gauge.rs +++ b/src/widgets/gauge.rs @@ -30,6 +30,7 @@ use crate::{prelude::*, widgets::Block}; /// # See also /// /// - [`LineGauge`] for a thin progress bar +#[allow(clippy::struct_field_names)] // gauge_style needs to be differentiated to style #[derive(Debug, Clone, PartialEq)] pub struct Gauge<'a> { block: Option>,