Skip to content

Commit

Permalink
Merge pull request #1 from Fantom-foundation/lessen_data_restrictions
Browse files Browse the repository at this point in the history
reduced restrictions of data
  • Loading branch information
Maxime2 committed Aug 14, 2019
2 parents 792849a + 8002a8e commit 0ea211a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/generic_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct TestPeer<Id> {
impl Peer<Id> for TestPeer<Id> {
fn new(id: Id, addr: String) -> TestPeer<Id> {
TestPeer {
id: id,
id,
net_addr: addr,
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
use crate::errors::Result;
use libcommon_rs::peer::{PeerId, PeerList};
use os_pipe::PipeWriter;
use serde::de::DeserializeOwned;
use serde::Serialize;
use std::sync::mpsc::Sender;

// Transport configurtatiion trait
Expand Down Expand Up @@ -54,7 +52,6 @@ pub trait TransportConfiguration<Data> {
// it can be a truct containing message type and payload data
pub trait Transport<Id, Data, Error, Pl>: Drop
where
Data: Serialize + DeserializeOwned,
Id: PeerId,
Pl: PeerList<Id, Error>,
{
Expand Down

0 comments on commit 0ea211a

Please sign in to comment.