File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -408,8 +408,8 @@ impl PubSub {
408
408
let msg_type : String = try!( from_redis_value (
409
409
& unwrap_or ! ( iter. next( ) , continue ) ) ) ;
410
410
let mut pattern = None ;
411
- let mut payload;
412
- let mut channel;
411
+ let payload;
412
+ let channel;
413
413
414
414
if msg_type == "message" {
415
415
channel = unwrap_or ! ( iter. next( ) , continue ) ;
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ impl InfoDict {
349
349
/// hash (`#`) are ignored.
350
350
pub fn new ( kvpairs : & str ) -> InfoDict {
351
351
let mut map = HashMap :: new ( ) ;
352
- for line in kvpairs. lines_any ( ) {
352
+ for line in kvpairs. lines ( ) {
353
353
if line. len ( ) == 0 || line. starts_with ( "#" ) {
354
354
continue ;
355
355
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ impl RedisServer {
57
57
impl Drop for RedisServer {
58
58
59
59
fn drop ( & mut self ) {
60
- let _ = self . process . kill ( ) . unwrap ( ) ;
60
+ let _ = self . process . kill ( ) ;
61
61
let _ = self . process . wait ( ) ;
62
62
}
63
63
}
You can’t perform that action at this time.
0 commit comments