aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/mod.rs1
-rw-r--r--src/input/mod.rs2
-rw-r--r--src/layout/mod.rs1
-rw-r--r--src/pw_utils.rs1
-rw-r--r--src/render_helpers/render_elements.rs1
5 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/mod.rs b/src/backend/mod.rs
index 2aa97bc0..6fdd2ea8 100644
--- a/src/backend/mod.rs
+++ b/src/backend/mod.rs
@@ -20,6 +20,7 @@ pub use winit::Winit;
pub mod headless;
pub use headless::Headless;
+#[allow(clippy::large_enum_variant)]
pub enum Backend {
Tty(Tty),
Winit(Winit),
diff --git a/src/input/mod.rs b/src/input/mod.rs
index 35343288..e50d5d75 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -4367,7 +4367,7 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
pub fn mods_with_binds(mod_key: ModKey, binds: &Binds, triggers: &[Trigger]) -> HashSet<Modifiers> {
let mut rv = HashSet::new();
for bind in &binds.0 {
- if !triggers.iter().any(|trigger| bind.key.trigger == *trigger) {
+ if !triggers.contains(&bind.key.trigger) {
continue;
}
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index 6a497c81..9b0002e0 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -397,6 +397,7 @@ impl Default for Options {
}
}
+#[allow(clippy::large_enum_variant)]
#[derive(Debug)]
enum InteractiveMoveState<W: LayoutElement> {
/// Initial rubberbanding; the window remains in the layout.
diff --git a/src/pw_utils.rs b/src/pw_utils.rs
index c47fa63f..7afacc45 100644
--- a/src/pw_utils.rs
+++ b/src/pw_utils.rs
@@ -83,6 +83,7 @@ pub struct Cast {
scheduled_redraw: Option<RegistrationToken>,
}
+#[allow(clippy::large_enum_variant)]
#[derive(Debug)]
pub enum CastState {
ResizePending {
diff --git a/src/render_helpers/render_elements.rs b/src/render_helpers/render_elements.rs
index 0ff74352..de526028 100644
--- a/src/render_helpers/render_elements.rs
+++ b/src/render_helpers/render_elements.rs
@@ -29,6 +29,7 @@ macro_rules! niri_render_elements {
// in this line, we cannot condition based on $R like elsewhere, so we condition on duplicate
// names instead. Like this: $($name_R<SomeRenderer>)? $($name_no_R)? so only one is chosen.
(@impl $name:ident ($($name_no_R:ident)?) ($($name_R:ident<$R:ident>)?) => { $($variant:ident = $type:ty),+ }) => {
+ #[allow(clippy::large_enum_variant)]
#[derive(Debug)]
pub enum $name$(<$R: $crate::render_helpers::renderer::NiriRenderer>)? {
$($variant($type)),+