Browse Source

cleanup

pull/132/head
jake 2 years ago
parent
commit
4a6b2dfb8f
  1. 3
      src/ship/items/actions.rs
  2. 1
      src/ship/items/itemstateaction.rs
  3. 3
      src/ship/items/tasks.rs

3
src/ship/items/actions.rs

@ -26,9 +26,6 @@ use crate::ship::drops::{ItemDrop, ItemDropType};
use crate::ship::packet::builder; use crate::ship::packet::builder;
use crate::ship::location::AreaClient; use crate::ship::location::AreaClient;
//type BoxFuture<T> = Pin<Box<dyn Future<Output=T> + Send>>;
//type LBoxFuture<'a, T> = Pin<Box<dyn Future<Output=T> + Send + 'a>>;
pub enum TriggerCreateItem { pub enum TriggerCreateItem {
Yes, Yes,
No No

1
src/ship/items/itemstateaction.rs

@ -1,5 +1,4 @@
use std::future::Future; use std::future::Future;
use futures::future::BoxFuture;
#[async_trait::async_trait] #[async_trait::async_trait]
pub trait ItemAction { pub trait ItemAction {

3
src/ship/items/tasks.rs

@ -1,4 +1,4 @@
use futures::future::{Future, BoxFuture};
use futures::future::BoxFuture;
use crate::ship::items::ClientItemId; use crate::ship::items::ClientItemId;
use crate::entity::item::Meseta; use crate::entity::item::Meseta;
@ -18,7 +18,6 @@ use crate::ship::drops::ItemDrop;
use crate::ship::items::actions; use crate::ship::items::actions;
//pub async fn pick_up_item<'a, EG>(
pub fn pick_up_item<'a, EG>( pub fn pick_up_item<'a, EG>(
item_state: &'a mut ItemState, item_state: &'a mut ItemState,
entity_gateway: &'a mut EG, entity_gateway: &'a mut EG,

Loading…
Cancel
Save