Get rid of redundant clone()s (thanks to clippy)

This commit is contained in:
Jonas Platte 2019-10-18 23:48:48 +02:00
parent 4f74c0b4fe
commit 63b85f524c
3 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ pub(crate) mod raw {
None => return Err(D::Error::missing_field("method")),
};
let method = match from_value::<VerificationMethod>(method_value.clone()) {
let method = match from_value::<VerificationMethod>(method_value) {
Ok(method) => method,
Err(error) => return Err(D::Error::custom(error.to_string())),
};

View File

@ -192,7 +192,7 @@ pub(crate) mod raw {
None => return Err(D::Error::missing_field("algorithm")),
};
let method = match from_value::<Algorithm>(method_value.clone()) {
let method = match from_value::<Algorithm>(method_value) {
Ok(method) => method,
Err(error) => return Err(D::Error::custom(error.to_string())),
};

View File

@ -247,7 +247,7 @@ pub(crate) mod raw {
None => return Err(D::Error::missing_field("msgtype")),
};
let message_type = match from_value::<MessageType>(message_type_value.clone()) {
let message_type = match from_value::<MessageType>(message_type_value) {
Ok(message_type) => message_type,
Err(error) => return Err(D::Error::custom(error.to_string())),
};