diff options
Diffstat (limited to '')
| -rw-r--r-- | src/message/handshake/clientinitreject.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message/handshake/clientinitreject.rs b/src/message/handshake/clientinitreject.rs index 8c2fd34..7c4bb72 100644 --- a/src/message/handshake/clientinitreject.rs +++ b/src/message/handshake/clientinitreject.rs @@ -22,9 +22,9 @@ impl HandshakeSerialize for ClientInitReject { } impl From<VariantMap> for ClientInitReject { - fn from(input: VariantMap) -> Self { + fn from(mut input: VariantMap) -> Self { ClientInitReject { - error: match_variant!(input.get("ErrorString").unwrap(), Variant::String), + error: input.remove("ErrorString").unwrap().try_into().unwrap(), } } } |
