[Fix]
Some checks failed
CI / rustfmt (push) Failing after 31s
CI / wasm build (push) Successful in 1m23s
CI / clippy (push) Failing after 1m44s
CI / example (push) Successful in 1m32s
CI / test (push) Successful in 2m6s
CI / duplicate code (push) Failing after 30s
CI / web client (push) Failing after 31s
CI / cargo-machete (push) Successful in 1m6s
CI / cargo-deny (push) Failing after 2m24s
Some checks failed
CI / rustfmt (push) Failing after 31s
CI / wasm build (push) Successful in 1m23s
CI / clippy (push) Failing after 1m44s
CI / example (push) Successful in 1m32s
CI / test (push) Successful in 2m6s
CI / duplicate code (push) Failing after 30s
CI / web client (push) Failing after 31s
CI / cargo-machete (push) Successful in 1m6s
CI / cargo-deny (push) Failing after 2m24s
This commit is contained in:
parent
6ef1293603
commit
41528ef717
6 changed files with 49 additions and 37 deletions
|
|
@ -254,26 +254,26 @@ pub fn parse_auth_response(response: &[u8]) -> Result<JsValue, JsValue> {
|
|||
.map_err(|e| js_error(&format!("parse failed: {}", e)))?;
|
||||
|
||||
let connected = matches!(
|
||||
comm.get_data(DataType::Connected)),
|
||||
comm.get_data(DataType::Connected),
|
||||
DataValue::BoolTrue
|
||||
);
|
||||
|
||||
let client_nonce = match comm.get_data(DataType::ClientNonce)) {
|
||||
let client_nonce = match comm.get_data(DataType::ClientNonce) {
|
||||
DataValue::UnsignedNumber(n) => Some(*n),
|
||||
_ => None,
|
||||
};
|
||||
|
||||
let assigned_id = match comm.get_data(DataType::Id)) {
|
||||
let assigned_id = match comm.get_data(DataType::Id) {
|
||||
DataValue::UnsignedNumber(n) => Some(*n as u64),
|
||||
_ => None,
|
||||
};
|
||||
|
||||
let timestamp = match comm.get_data(DataType::Timestamp)) {
|
||||
let timestamp = match comm.get_data(DataType::Timestamp) {
|
||||
DataValue::UnsignedNumber(n) => Some(*n),
|
||||
_ => None,
|
||||
};
|
||||
|
||||
let signature = match comm.get_data(DataType::Signature)) {
|
||||
let signature = match comm.get_data(DataType::Signature) {
|
||||
DataValue::Bytes(b) => Some(b.clone()),
|
||||
_ => None,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue