use GATs to remove lifetime on postgresgateway #132
| @ -26,9 +26,6 @@ use crate::ship::drops::{ItemDrop, ItemDropType}; | ||||
| use crate::ship::packet::builder; | ||||
| 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 { | ||||
|     Yes, | ||||
|     No | ||||
|  | ||||
| @ -1,5 +1,4 @@ | ||||
| use std::future::Future; | ||||
| use futures::future::BoxFuture; | ||||
| 
 | ||||
| #[async_trait::async_trait] | ||||
| pub trait ItemAction { | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| use futures::future::{Future, BoxFuture}; | ||||
| use futures::future::BoxFuture; | ||||
| use crate::ship::items::ClientItemId; | ||||
| use crate::entity::item::Meseta; | ||||
| 
 | ||||
| @ -18,7 +18,6 @@ use crate::ship::drops::ItemDrop; | ||||
| 
 | ||||
| use crate::ship::items::actions; | ||||
| 
 | ||||
| //pub async fn pick_up_item<'a, EG>(
 | ||||
| pub fn pick_up_item<'a, EG>( | ||||
|     item_state: &'a mut ItemState, | ||||
|     entity_gateway: &'a mut EG, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user