Skip to content

Commit

Permalink
Try without lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Oct 19, 2020
1 parent 019f004 commit 2874128
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/cw0/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,18 +282,17 @@ impl From<HandleResponse<Empty>> for ActionResponse {
}
}

pub struct Router<'a, 'b, S, A>
pub struct Router<S, A>
where
S: Storage + Default,
A: Api,
'a: 'b
{
wasm: WasmRouter<S, A, &'b Router<'a, 'b, S, A>>,
wasm: WasmRouter<S, A, Router<S, A>>,
// TODO: bank router
// LATER: staking router
}

impl<'a, 'b, S, A> Querier for &Router<'a, 'b, S, A>
impl<S, A> Querier for Router<S, A>
where
S: Storage + Default,
A: Api,
Expand All @@ -308,12 +307,12 @@ where
})
}
};
let contract_result: ContractResult<Binary> = self.query(&request).into();
let contract_result: ContractResult<Binary> = self.query(request).into();
SystemResult::Ok(contract_result)
}
}

impl<'a, 'b, S, A> Router<'a, 'b, S, A>
impl<S, A> Router<S, A>
where
S: Storage + Default,
A: Api,
Expand Down

0 comments on commit 2874128

Please sign in to comment.