Skip to content

Commit 59c9c36

Browse files
authored
Fix elided_named_lifetimes (librespot-org#1365)
Signed-off-by: yubiuser <[email protected]>
1 parent 785744d commit 59c9c36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

connect/src/spirc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ struct CommandSender<'a> {
15341534
}
15351535

15361536
impl<'a> CommandSender<'a> {
1537-
fn new(spirc: &'a mut SpircTask, cmd: MessageType) -> CommandSender<'_> {
1537+
fn new(spirc: &'a mut SpircTask, cmd: MessageType) -> Self {
15381538
let mut frame = protocol::spirc::Frame::new();
15391539
// frame version
15401540
frame.set_version(1);
@@ -1549,13 +1549,13 @@ impl<'a> CommandSender<'a> {
15491549
CommandSender { spirc, frame }
15501550
}
15511551

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

15571557
#[allow(dead_code)]
1558-
fn state(mut self, state: protocol::spirc::State) -> CommandSender<'a> {
1558+
fn state(mut self, state: protocol::spirc::State) -> Self {
15591559
*self.frame.state.mut_or_insert_default() = state;
15601560
self
15611561
}

0 commit comments

Comments
 (0)