niax / rust-email

Implementation of MIME Messages for Rust
MIT License
62 stars 34 forks source link

the trait `core::marker::Sized` is not implemented for the type `Self` #23

Closed buster closed 8 years ago

buster commented 8 years ago

Just as a heads up, it looks like rust-email will stop working in rust 1.5:

/email-0.0.12/src/header.rs:24:5: 24:58 warning: the trait `core::marker::Sized` is not implemented for the type `Self` [E0277]
/email-0.0.12/src/header.rs:24     fn from_header(value: String) -> ParsingResult<Self>;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/email-0.0.12/src/header.rs:24:5: 24:58 help: run `rustc --explain E0277` to see a detailed explanation
/email-0.0.12/src/header.rs:24:5: 24:58 note: `Self` does not have a constant size known at compile-time
/email-0.0.12/src/header.rs:24:5: 24:58 note: this warning results from recent bug fixes and clarifications; it will become a HARD ERROR in the next release. See RFC 1214 for details.
/email-0.0.12/src/header.rs:24     fn from_header(value: String) -> ParsingResult<Self>;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/email-0.0.12/src/header.rs:24:5: 24:58 note: required by `core::result::Result`
untitaker commented 8 years ago

24 fixes this.