From 4818896093668697106a0d7263f66c48d4f1c043 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 20 Apr 2022 18:35:24 -0600 Subject: [PATCH] redundant bit of code --- src/ship/items/state.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/ship/items/state.rs b/src/ship/items/state.rs index b7ce7d4..6f1c550 100644 --- a/src/ship/items/state.rs +++ b/src/ship/items/state.rs @@ -22,7 +22,6 @@ pub enum TriggerCreateItem { } - #[derive(thiserror::Error, Debug)] enum ItemStateError { #[error("character {0} not found")] @@ -42,17 +41,9 @@ enum ItemStateError { Dummy, #[error("gateway")] - GatewayError(GatewayError), -} - -impl From for ItemStateError { - fn from(other: GatewayError) -> ItemStateError { - ItemStateError::GatewayError(other) - } + GatewayError(#[from] GatewayError), } - - enum GatewayActions { ItemNote(ItemEntityId, ItemNote), }