handle surplus options

This commit is contained in:
shimun 2020-04-01 19:49:49 +02:00
parent 9440271d90
commit 65ef574031
Signed by: shimun
GPG Key ID: E81D8382DC2F971B

View File

@ -423,7 +423,9 @@ impl OptionsInfo {
"clientPin" => options.client_pin = Some(decoder.bool()?),
"up" => options.up = decoder.bool()?,
"uv" => options.uv = Some(decoder.bool()?),
_ => continue,
_ => {
decoder.bool()?;
}
}
}
Ok(options)