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 @@ -692,7 +692,7 @@ impl<S: Read + Write> Client<S> {
692
692
. map ( |& ( ref a, _) | * a == "sticker" )
693
693
. unwrap_or ( true )
694
694
} )
695
- . map ( |r| r. map ( |( _, b) | b. splitn ( 2 , "=" ) . nth ( 1 ) . map ( |s| s. to_owned ( ) ) . unwrap ( ) ) )
695
+ . map ( |r| r. map ( |( _, b) | b. splitn ( 2 , '=' ) . nth ( 1 ) . map ( |s| s. to_owned ( ) ) . unwrap ( ) ) )
696
696
. collect ( )
697
697
} )
698
698
}
@@ -708,7 +708,7 @@ impl<S: Read + Write> Client<S> {
708
708
rmap. map ( |mut map| {
709
709
( map. remove ( "file" ) . unwrap ( ) ,
710
710
map. remove ( "sticker" )
711
- . and_then ( |s| s. splitn ( 2 , "=" ) . nth ( 1 ) . map ( |s| s. to_owned ( ) ) )
711
+ . and_then ( |s| s. splitn ( 2 , '=' ) . nth ( 1 ) . map ( |s| s. to_owned ( ) ) )
712
712
. unwrap ( ) )
713
713
} )
714
714
} )
@@ -741,7 +741,7 @@ impl<S: Read + Write> Proto for Client<S> {
741
741
fn read_line ( & mut self ) -> Result < String > {
742
742
let mut buf = String :: new ( ) ;
743
743
try!( self . socket . read_line ( & mut buf) ) ;
744
- if buf. ends_with ( " \n " ) {
744
+ if buf. ends_with ( '\n' ) {
745
745
buf. pop ( ) ;
746
746
}
747
747
Ok ( buf)
You can’t perform that action at this time.
0 commit comments