Correct hanlding of reactions
while converting from System to PositiveSystem
This commit is contained in:
@ -67,3 +67,15 @@ impl PrintableWithTranslator for PositiveType {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<(IdType, IdState)> for PositiveType {
|
||||
fn from(value: (IdType, IdState)) -> Self {
|
||||
Self { id: value.0, state: value.1 }
|
||||
}
|
||||
}
|
||||
|
||||
impl From<(&IdType, &IdState)> for PositiveType {
|
||||
fn from(value: (&IdType, &IdState)) -> Self {
|
||||
Self { id: *value.0, state: *value.1 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user