mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-20 18:56:19 +00:00
Fix 1.89 clippy warnings (#2055)
* Fix 1.89 clippy warnings * WASM lightclient clippy fixes too
This commit is contained in:
1 parent
642e6b5be5
commit
42f1a62a05
8 files changed
+13
-13
No files matched your search
@@ -72,17 +72,17 @@ impl PlatformRef for SubxtPlatform {
|
||||
|
||||
fn spawn_task(
|
||||
&self,
|
||||
_task_name: std::borrow::Cow<str>,
|
||||
_task_name: std::borrow::Cow<'_, str>,
|
||||
task: impl future::Future<Output = ()> + Send + 'static,
|
||||
) {
|
||||
wasm_bindgen_futures::spawn_local(task);
|
||||
}
|
||||
|
||||
fn client_name(&self) -> std::borrow::Cow<str> {
|
||||
fn client_name(&self) -> std::borrow::Cow<'_, str> {
|
||||
"subxt-light-client".into()
|
||||
}
|
||||
|
||||
fn client_version(&self) -> std::borrow::Cow<str> {
|
||||
fn client_version(&self) -> std::borrow::Cow<'_, str> {
|
||||
env!("CARGO_PKG_VERSION").into()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user