removed redundant Bloom conversions (#7932)

* removed redundant Bloom conversions

* fixed broken tests
This commit is contained in:
Marek Kotewicz
2018-02-19 14:08:33 +01:00
committed by André Silva
parent d6d6a7cc95
commit 5b4abec2db
3 changed files with 7 additions and 22 deletions

View File

@@ -26,26 +26,16 @@ pub struct BloomGroup {
impl From<bc::BloomGroup> for BloomGroup {
fn from(group: bc::BloomGroup) -> Self {
let blooms = group.blooms
.into_iter()
.map(From::from)
.collect();
BloomGroup {
blooms: blooms
blooms: group.blooms
}
}
}
impl Into<bc::BloomGroup> for BloomGroup {
fn into(self) -> bc::BloomGroup {
let blooms = self.blooms
.into_iter()
.map(Into::into)
.collect();
bc::BloomGroup {
blooms: blooms
blooms: self.blooms
}
}
}