From 08c364b780f701e67c91e007fc96089944fb6be8 Mon Sep 17 00:00:00 2001 From: Richard Farr Date: Fri, 31 Jan 2020 14:51:42 -0500 Subject: [PATCH] Remove mut pattern for 2 functions without body - Addresses https://github.com/rust-lang/rust/issues/35203 --- src/borrowed.rs | 2 +- src/owned.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borrowed.rs b/src/borrowed.rs index 7e41e06e..5c7443b2 100644 --- a/src/borrowed.rs +++ b/src/borrowed.rs @@ -123,7 +123,7 @@ pub trait RedisClientBorrowed { fn hmget, K: Into>(&self, key: K, fields: F) -> Box, Error=RedisError>>; - fn hmset, F: Into + Hash + Eq, K: Into>(&self, key: K, mut values: HashMap) -> Box>; + fn hmset, F: Into + Hash + Eq, K: Into>(&self, key: K, values: HashMap) -> Box>; fn hset, F: Into, V: Into>(&self, key: K, field: F, value: V) -> Box>; diff --git a/src/owned.rs b/src/owned.rs index e72c1101..1482a71b 100644 --- a/src/owned.rs +++ b/src/owned.rs @@ -120,7 +120,7 @@ pub trait RedisClientOwned: Sized { fn hmget, K: Into>(self, key: K, fields: F) -> Box), Error=RedisError>>; - fn hmset, F: Into + Hash + Eq, K: Into>(self, key: K, mut values: HashMap) -> Box>; + fn hmset, F: Into + Hash + Eq, K: Into>(self, key: K, values: HashMap) -> Box>; fn hset, F: Into, V: Into>(self, key: K, field: F, value: V) -> Box>;