Get rid of redundant clone()s (thanks to clippy)
This commit is contained in:
parent
4f74c0b4fe
commit
63b85f524c
@ -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())),
|
||||
};
|
||||
|
@ -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())),
|
||||
};
|
||||
|
@ -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())),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user