Commit c11e4031 authored by Hero Bird's avatar Hero Bird
Browse files

[examples/Subpeep] Use new parity-codec derive forwarding

parent 44c011c4
......@@ -16,10 +16,10 @@ use alloc::vec::Vec;
use pdsl_core::storage;
use parity_codec_derive::{Encode, Decode};
use parity_codec::{Encode, Decode};
/// A peep done by a registered user.
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Encode, Decode)]
#[derive(Debug, Clone, PartialEq, Eq, Encode, Decode)]
pub struct Peep {
/// By whom the peep was done.
by: String,
......@@ -35,7 +35,7 @@ impl Peep {
}
/// The data of a registered user.
#[derive(Encode, Decode)]
#[derive(Debug, Encode, Decode)]
pub struct UserData {
/// The peeps.
peeps: storage::Vec<String>,
......
use super::*;
#[macro_use]
use pdsl_core::memory::vec;
#[test]
fn deploy() {
let subpeep = Subpeep::default();
......
......@@ -11,8 +11,7 @@ use pdsl_core::{
},
};
use parity_codec_derive::{Encode, Decode};
use parity_codec::{Encode, Decode};
use lazy_static::lazy_static;
use spin::Mutex;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment