Skip to content

Commit 85bab46

Browse files
committed
Updated to newer rusts
1 parent 4a9b005 commit 85bab46

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/connection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ impl PubSub {
408408
let msg_type : String = try!(from_redis_value(
409409
&unwrap_or!(iter.next(), continue)));
410410
let mut pattern = None;
411-
let mut payload;
412-
let mut channel;
411+
let payload;
412+
let channel;
413413

414414
if msg_type == "message" {
415415
channel = unwrap_or!(iter.next(), continue);

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl InfoDict {
349349
/// hash (`#`) are ignored.
350350
pub fn new(kvpairs: &str) -> InfoDict {
351351
let mut map = HashMap::new();
352-
for line in kvpairs.lines_any() {
352+
for line in kvpairs.lines() {
353353
if line.len() == 0 || line.starts_with("#") {
354354
continue;
355355
}

tests/test_basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl RedisServer {
5757
impl Drop for RedisServer {
5858

5959
fn drop(&mut self) {
60-
let _ = self.process.kill().unwrap();
60+
let _ = self.process.kill();
6161
let _ = self.process.wait();
6262
}
6363
}

0 commit comments

Comments
 (0)