chore: 1.88 clippy (#5877)

* 1.88 clippy

* wasm clippy

* wallet clippy
This commit is contained in:
Jędrzej Stuczyński
2025-07-01 10:28:57 +01:00
committed by GitHub
parent ef5990658a
commit 2ae38b9e49
168 changed files with 393 additions and 523 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ pub fn encode_payload_with_headers(
Ok([size, metadata, payload].concat())
}
Err(e) => Err(JsValue::from(JsError::new(
format!("Could not encode message: {}", e).as_str(),
format!("Could not encode message: {e}").as_str(),
))),
}
}
@@ -84,7 +84,7 @@ pub fn decode_payload(message: Vec<u8>) -> Result<IEncodedPayload, JsValue> {
.unwrap()
.unchecked_into::<IEncodedPayload>()),
Err(e) => Err(JsValue::from(JsError::new(
format!("Could not parse message: {}", e).as_str(),
format!("Could not parse message: {e}").as_str(),
))),
}
}