Skip to content

Commit

Permalink
remove ref from with_signal
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyKomodo committed Apr 30, 2024
1 parent eaa9de9 commit 952e594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foundations/src/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl SignalHandler {
Self::default()
}

pub fn with_signal(&mut self, kind: SignalKind) -> &mut Self {
pub fn with_signal(mut self, kind: SignalKind) -> Self {
if self.signals.iter().any(|(k, _)| k == &kind) {
return self;
}
Expand Down

0 comments on commit 952e594

Please sign in to comment.