Fix warnings: iter

This commit is contained in:
adria0 2020-07-29 11:13:08 +02:00 committed by Artem Vorotnikov
parent 725073a683
commit ac8f65dbbf
No known key found for this signature in database
GPG Key ID: E0148C3F2FBB7A20
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ impl<'a> Into<String> for &'a Uuid {
let d4 = &self.0[8..10]; let d4 = &self.0[8..10];
let d5 = &self.0[10..16]; let d5 = &self.0[10..16];
[d1, d2, d3, d4, d5] [d1, d2, d3, d4, d5]
.into_iter() .iter()
.map(|d| d.to_hex()) .map(|d| d.to_hex())
.collect::<Vec<String>>() .collect::<Vec<String>>()
.join("-") .join("-")

View File

@ -743,7 +743,7 @@ impl ApiSet {
Api::WhisperPubSub, Api::WhisperPubSub,
Api::Private, Api::Private,
] ]
.into_iter() .iter()
.cloned() .cloned()
.collect(); .collect();
@ -778,7 +778,7 @@ impl ApiSet {
Api::ParitySet, Api::ParitySet,
Api::Traces, Api::Traces,
] ]
.into_iter() .iter()
.cloned() .cloned()
.collect(), .collect(),
} }