Browse Source

more anyhow

pull/127/head
jake 1 year ago
parent
commit
ab8c5e6688
  1. 2
      src/ship/items/actions.rs
  2. 2
      src/ship/items/tasks.rs

2
src/ship/items/actions.rs

@ -977,7 +977,7 @@ where
pub(super) fn add_item_to_local_floor<EG, TR>(
character_id: CharacterEntityId,
) -> impl Fn((ItemStateProxy, TR), FloorItem)
-> BoxFuture<Result<((ItemStateProxy, TR), FloorItem), ItemStateError>>
-> BoxFuture<Result<((ItemStateProxy, TR), FloorItem), anyhow::Error>>
where
EG: EntityGateway,
TR: EntityGatewayTransaction<ParentGateway = EG> + 'static,

2
src/ship/items/tasks.rs

@ -466,7 +466,7 @@ pub async fn enemy_drops_item<'a, EG> (
entity_gateway: &mut EG,
character_id: CharacterEntityId,
item_drop: ItemDrop)
-> Result<FloorItem, ItemStateError>
-> Result<FloorItem, anyhow::Error>
where
EG: EntityGateway + 'static,
{

Loading…
Cancel
Save