Skip to content

Commit

Permalink
Merge pull request #2 from P3KI/task/add_missing_derives_for_AsString
Browse files Browse the repository at this point in the history
[Encoder] Adds missing derives for AsString (fixes #1).
  • Loading branch information
0ndorio authored Aug 7, 2018
2 parents a5eaac4 + 016f2ac commit 4de61ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ where
}

/// Wrapper to allow `Vec<u8>` encoding as bencode string element.
#[derive(Clone, Copy, Debug, Default, Hash, Eq, PartialEq, PartialOrd, Ord)]
pub struct AsString<I>(pub I);

impl<I> Encodable for AsString<I>
Expand Down

0 comments on commit 4de61ca

Please sign in to comment.