Skip to content

Commit

Permalink
Fix and un-allow clippy::return_self_not_must_use lints (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Dec 17, 2024
1 parent 0fd6b08 commit bef2115
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions parley/src/layout/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ pub enum Affinity {
}

impl Affinity {
#[must_use]
pub fn invert(&self) -> Self {
match self {
Self::Downstream => Self::Upstream,
Expand Down
1 change: 0 additions & 1 deletion parley/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
#![allow(clippy::exhaustive_enums)]
#![allow(clippy::missing_assert_message)]
#![allow(clippy::missing_panics_doc)]
#![allow(clippy::return_self_not_must_use)]
#![allow(clippy::shadow_unrelated)]
#![allow(clippy::use_self)]

Expand Down

0 comments on commit bef2115

Please sign in to comment.