Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) removed deprecated syntax for lifetime in traits #40

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/encoding/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl ByteWriter for Vec<u8> {

/// String writer used by `Decoder`s. In most cases this will be an owned string.
#[unstable]
pub trait StringWriter: 'static {
pub trait StringWriter {
/// Hints an expected lower bound on the length (in bytes) of the output
/// until the next call to `writer_hint`,
/// so that the writer can reserve the memory for writing.
Expand Down Expand Up @@ -136,7 +136,7 @@ impl StringWriter for String {
/// Encoder converting a Unicode string into a byte sequence.
/// This is a lower level interface, and normally `Encoding::encode` should be used instead.
#[experimental]
pub trait Encoder: 'static {
pub trait Encoder {
/// Creates a fresh `Encoder` instance which parameters are same as `self`.
fn from_self(&self) -> Box<Encoder>;

Expand Down Expand Up @@ -189,7 +189,7 @@ pub trait Encoder: 'static {
/// Encoder converting a byte sequence into a Unicode string.
/// This is a lower level interface, and normally `Encoding::decode` should be used instead.
#[experimental]
pub trait Decoder: 'static {
pub trait Decoder {
/// Creates a fresh `Decoder` instance which parameters are same as `self`.
fn from_self(&self) -> Box<Decoder>;

Expand Down