add missing feature flags
This commit is contained in:
parent
1b504b1ee2
commit
696bc97ca5
1 changed files with 2 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ pub enum SignalPhase {
|
||||||
Yellow,
|
Yellow,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "spat")]
|
||||||
impl core::fmt::Display for SignalPhase {
|
impl core::fmt::Display for SignalPhase {
|
||||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||||
match self {
|
match self {
|
||||||
|
|
@ -92,6 +93,7 @@ impl core::fmt::Display for SignalPhase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "spat")]
|
||||||
impl From<c_its_parser::standards::dsrc_2_2_1::etsi_its_dsrc::MovementPhaseState> for SignalPhase {
|
impl From<c_its_parser::standards::dsrc_2_2_1::etsi_its_dsrc::MovementPhaseState> for SignalPhase {
|
||||||
fn from(value: c_its_parser::standards::dsrc_2_2_1::etsi_its_dsrc::MovementPhaseState) -> Self {
|
fn from(value: c_its_parser::standards::dsrc_2_2_1::etsi_its_dsrc::MovementPhaseState) -> Self {
|
||||||
use c_its_parser::standards::dsrc_2_2_1::etsi_its_dsrc::MovementPhaseState;
|
use c_its_parser::standards::dsrc_2_2_1::etsi_its_dsrc::MovementPhaseState;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue