Skip to content

Commit 74993c6

Browse files
authored
Update toolchain to 2023-01-05 (#425)
* update toolchain * fix clippy
1 parent c1cad34 commit 74993c6

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

client-keystore/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ impl KeystoreInner {
546546
let mut public_keys: Vec<Vec<u8>> = self
547547
.additional
548548
.keys()
549-
.into_iter()
550549
.filter_map(|k| if k.0 == id { Some(k.1.clone()) } else { None })
551550
.collect();
552551

node-api/src/print_metadata.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl Metadata {
5050
}
5151
}
5252

53-
println!("{}", string);
53+
println!("{string}");
5454
}
5555

5656
pub fn print_pallets(&self) {
@@ -113,7 +113,7 @@ impl PalletMetadata {
113113
pub fn print_calls(&self) {
114114
println!("----------------- Calls for Pallet: {} -----------------\n", self.name);
115115
for (name, index) in &self.call_indexes {
116-
println!("Name: {}, index {}", name, index);
116+
println!("Name: {name}, index {index}");
117117
}
118118
println!();
119119
}

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "nightly-2022-11-05"
2+
channel = "nightly-2023-01-05"
33
targets = ["wasm32-unknown-unknown"]
44
profile = "default" # include rustfmt, clippy

src/api/rpc_api/author.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ where
222222
} else {
223223
subscription.unsubscribe()?;
224224
let error = Error::Extrinsic(format!(
225-
"Unsupported transaction status: {:?}, stopping watch process.",
226-
transaction_status
225+
"Unsupported transaction status: {transaction_status:?}, stopping watch process."
226+
227227
));
228228
return Err(error)
229229
}

src/rpc/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ mod std_only {
6666

6767
impl From<RecvError> for Error {
6868
fn from(error: RecvError) -> Self {
69-
Self::RecvError(format!("{:?}", error))
69+
Self::RecvError(format!("{error:?}"))
7070
}
7171
}
7272

7373
impl From<std::io::Error> for Error {
7474
fn from(error: std::io::Error) -> Self {
75-
Self::Io(format!("{:?}", error))
75+
Self::Io(format!("{error:?}"))
7676
}
7777
}
7878

7979
impl From<url::ParseError> for Error {
8080
fn from(error: url::ParseError) -> Self {
81-
Self::InvalidUrl(format!("{:?}", error))
81+
Self::InvalidUrl(format!("{error:?}"))
8282
}
8383
}
8484
}

0 commit comments

Comments
 (0)