Browse Source

redundant bit of code

pull/113/head
jake 3 years ago
parent
commit
4818896093
  1. 11
      src/ship/items/state.rs

11
src/ship/items/state.rs

@ -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,16 +41,8 @@ enum ItemStateError {
Dummy, Dummy,
#[error("gateway")] #[error("gateway")]
GatewayError(GatewayError),
}
impl From<GatewayError> for ItemStateError {
fn from(other: GatewayError) -> ItemStateError {
ItemStateError::GatewayError(other)
GatewayError(#[from] GatewayError),
} }
}
enum GatewayActions { enum GatewayActions {
ItemNote(ItemEntityId, ItemNote), ItemNote(ItemEntityId, ItemNote),

Loading…
Cancel
Save