Skip to content

Commit

Permalink
add Drop trait requirement for Transport trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime2 committed Aug 6, 2019
1 parent aa91c39 commit 3778c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub trait TransportConfiguration<Data> {
// Data - Transmitting data type;
// Error - error type returned by methods of Pl: PeerList
// it can be a truct containing message type and payload data
pub trait Transport<Id, Data, Error, Pl>
pub trait Transport<Id, Data, Error, Pl>: Drop
where
Data: AsRef<u8> + Serialize + DeserializeOwned,
Id: PeerId,
Expand Down

0 comments on commit 3778c0b

Please sign in to comment.