File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -623,31 +623,31 @@ impl fmt::Debug for WsClient {
623
623
624
624
#[ cfg( feature = "websocket" ) ]
625
625
impl Sink < crate :: ws:: Message > for WsClient {
626
- type Error = ( ) ;
626
+ type Error = WsError ;
627
627
628
628
fn poll_ready (
629
629
self : Pin < & mut Self > ,
630
630
context : & mut Context < ' _ > ,
631
631
) -> Poll < Result < ( ) , Self :: Error > > {
632
- self . pinned_tx ( ) . poll_ready ( context) . map_err ( |_| ( ) )
632
+ self . pinned_tx ( ) . poll_ready ( context) . map_err ( WsError :: new )
633
633
}
634
634
635
635
fn start_send ( self : Pin < & mut Self > , message : Message ) -> Result < ( ) , Self :: Error > {
636
- self . pinned_tx ( ) . start_send ( message) . map_err ( |_| ( ) )
636
+ self . pinned_tx ( ) . start_send ( message) . map_err ( WsError :: new )
637
637
}
638
638
639
639
fn poll_flush (
640
640
self : Pin < & mut Self > ,
641
641
context : & mut Context < ' _ > ,
642
642
) -> Poll < Result < ( ) , Self :: Error > > {
643
- self . pinned_tx ( ) . poll_flush ( context) . map_err ( |_| ( ) )
643
+ self . pinned_tx ( ) . poll_flush ( context) . map_err ( WsError :: new )
644
644
}
645
645
646
646
fn poll_close (
647
647
self : Pin < & mut Self > ,
648
648
context : & mut Context < ' _ > ,
649
649
) -> Poll < Result < ( ) , Self :: Error > > {
650
- self . pinned_tx ( ) . poll_close ( context) . map_err ( |_| ( ) )
650
+ self . pinned_tx ( ) . poll_close ( context) . map_err ( WsError :: new )
651
651
}
652
652
}
653
653
You can’t perform that action at this time.
0 commit comments