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 d5 = &self.0[10..16];
[d1, d2, d3, d4, d5]
.into_iter()
.iter()
.map(|d| d.to_hex())
.collect::<Vec<String>>()
.join("-")

View File

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