Skip to content

Commit

Permalink
RFC 1214 fix
Browse files Browse the repository at this point in the history
This will become a hard error in Rust 1.5.
  • Loading branch information
steveklabnik committed Oct 28, 2015
1 parent 2d1b19c commit 33d77fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bencode.rs
Expand Up @@ -319,7 +319,7 @@ pub trait ToBencode {
fn to_bencode(&self) -> Bencode;
}

pub trait FromBencode {
pub trait FromBencode where Self: Sized {
type Err;

fn from_bencode(&Bencode) -> Result<Self, Self::Err>;
Expand Down

0 comments on commit 33d77fc

Please sign in to comment.