Fix warnings: iter

This commit is contained in:
adria0
2020-08-07 20:47:13 +03:00
committed by Artem Vorotnikov
parent 725073a683
commit ac8f65dbbf
2 changed files with 3 additions and 3 deletions
+1 -1
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("-")
+2 -2
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(),
}