redundant bit of code
This commit is contained in:
parent
93a299af00
commit
deface35b8
@ -22,7 +22,6 @@ pub enum TriggerCreateItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
enum ItemStateError {
|
enum ItemStateError {
|
||||||
#[error("character {0} not found")]
|
#[error("character {0} not found")]
|
||||||
@ -42,17 +41,9 @@ enum ItemStateError {
|
|||||||
Dummy,
|
Dummy,
|
||||||
|
|
||||||
#[error("gateway")]
|
#[error("gateway")]
|
||||||
GatewayError(GatewayError),
|
GatewayError(#[from] GatewayError),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<GatewayError> for ItemStateError {
|
|
||||||
fn from(other: GatewayError) -> ItemStateError {
|
|
||||||
ItemStateError::GatewayError(other)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enum GatewayActions {
|
enum GatewayActions {
|
||||||
ItemNote(ItemEntityId, ItemNote),
|
ItemNote(ItemEntityId, ItemNote),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user