Skip to content

Commit

Permalink
Fix elided_named_lifetimes (#1365)
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser authored Oct 6, 2024
1 parent 8dce30a commit 353c696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connect/src/spirc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ struct CommandSender<'a> {
}

impl<'a> CommandSender<'a> {
fn new(spirc: &'a mut SpircTask, cmd: MessageType) -> CommandSender<'_> {
fn new(spirc: &'a mut SpircTask, cmd: MessageType) -> Self {
let mut frame = protocol::spirc::Frame::new();
// frame version
frame.set_version(1);
Expand All @@ -1549,13 +1549,13 @@ impl<'a> CommandSender<'a> {
CommandSender { spirc, frame }
}

fn recipient(mut self, recipient: &'a str) -> CommandSender<'_> {
fn recipient(mut self, recipient: &'a str) -> Self {
self.frame.recipient.push(recipient.to_owned());
self
}

#[allow(dead_code)]
fn state(mut self, state: protocol::spirc::State) -> CommandSender<'a> {
fn state(mut self, state: protocol::spirc::State) -> Self {
*self.frame.state.mut_or_insert_default() = state;
self
}
Expand Down

0 comments on commit 353c696

Please sign in to comment.