File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1534,7 +1534,7 @@ struct CommandSender<'a> {
15341534}
15351535
15361536impl < ' 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 }
You can’t perform that action at this time.
0 commit comments