sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs

This commit is contained in:
Jorge Aparicio
2015-01-03 22:54:18 -05:00
parent 8c5bb80d9b
commit 351409a622
231 changed files with 1115 additions and 1115 deletions

View File

@@ -81,7 +81,7 @@ impl<R: Buffer> Buffer for LimitReader<R> {
}
/// A `Writer` which ignores bytes written to it, like /dev/null.
#[deriving(Copy)]
#[derive(Copy)]
pub struct NullWriter;
impl Writer for NullWriter {
@@ -90,7 +90,7 @@ impl Writer for NullWriter {
}
/// A `Reader` which returns an infinite stream of 0 bytes, like /dev/zero.
#[deriving(Copy)]
#[derive(Copy)]
pub struct ZeroReader;
impl Reader for ZeroReader {
@@ -111,7 +111,7 @@ impl Buffer for ZeroReader {
}
/// A `Reader` which is always at EOF, like /dev/null.
#[deriving(Copy)]
#[derive(Copy)]
pub struct NullReader;
impl Reader for NullReader {
@@ -163,7 +163,7 @@ impl Writer for MultiWriter {
/// A `Reader` which chains input from multiple `Reader`s, reading each to
/// completion before moving onto the next.
#[deriving(Clone)]
#[derive(Clone)]
pub struct ChainedReader<I, R> {
readers: I,
cur_reader: Option<R>,
@@ -247,7 +247,7 @@ pub fn copy<R: Reader, W: Writer>(r: &mut R, w: &mut W) -> io::IoResult<()> {
}
/// An adaptor converting an `Iterator<u8>` to a `Reader`.
#[deriving(Clone)]
#[derive(Clone)]
pub struct IterReader<T> {
iter: T,
}