compiles again
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit

This commit is contained in:
2024-05-18 17:58:54 +02:00
parent cb0a65c4d4
commit 8e89c8dd66
2 changed files with 13 additions and 23 deletions

View File

@ -204,15 +204,14 @@ pub mod eps {
}
Self(switch_map)
}
}
impl From<SwitchMapBinaryWrapper> for SwitchMapWrapper {
fn from(value: SwitchMapBinaryWrapper) -> Self {
value
.0
.iter()
.map(|(key, value)| (*key, SwitchState::from(value.into())))
.collect()
pub fn from_binary_switch_map_ref(switch_map: &SwitchMapBinary) -> Self {
Self(
switch_map
.iter()
.map(|(key, value)| (*key, SwitchState::from(*value)))
.collect(),
)
}
}