Skip to content

Commit

Permalink
[examples/core] Made some core examples compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Feb 27, 2019
1 parent 841f2cd commit 7dda011
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/core/erc20/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use pdsl_core::{
self,
alloc::{
AllocateUsing,
Allocator,
Allocate,
BumpAlloc,
Initialize,
},
Expand Down Expand Up @@ -128,7 +128,7 @@ impl Erc20Token {
impl AllocateUsing for Erc20Token {
unsafe fn allocate_using<A>(alloc: &mut A) -> Self
where
A: Allocator,
A: Allocate,
{
Self {
balances: storage::HashMap::allocate_using(alloc),
Expand Down
3 changes: 2 additions & 1 deletion examples/core/incrementer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use pdsl_core::{
storage::{
alloc::{
self,
Allocate,
AllocateUsing,
Initialize,
},
Expand Down Expand Up @@ -70,7 +71,7 @@ impl Initialize for Incrementer {
impl AllocateUsing for Incrementer {
unsafe fn allocate_using<A>(alloc: &mut A) -> Self
where
A: pdsl_core::storage::Allocator,
A: Allocate,
{
Self {
current: AllocateUsing::allocate_using(alloc),
Expand Down
4 changes: 2 additions & 2 deletions examples/core/subpeep/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub struct UserData {
impl AllocateUsing for UserData {
unsafe fn allocate_using<A>(alloc: &mut A) -> Self
where
A: storage::Allocator,
A: pdsl_core::storage::alloc::Allocate,
{
Self {
owner: Address::from(&[0x0; 32][..]),
Expand Down Expand Up @@ -110,7 +110,7 @@ pub struct Subpeep {
impl AllocateUsing for Subpeep {
unsafe fn allocate_using<A>(alloc: &mut A) -> Self
where
A: pdsl_core::storage::Allocator,
A: pdsl_core::storage::alloc::Allocate,
{
Self {
peeps: storage::Vec::allocate_using(alloc),
Expand Down

0 comments on commit 7dda011

Please sign in to comment.