mirror of https://github.com/m-labs/artiq.git
Rust: fix prelude.
This commit is contained in:
parent
9562d8d1df
commit
b8137103c3
|
@ -17,6 +17,8 @@ use core::cmp;
|
||||||
use core::fmt;
|
use core::fmt;
|
||||||
use io::{self, DEFAULT_BUF_SIZE, Error, ErrorKind, SeekFrom};
|
use io::{self, DEFAULT_BUF_SIZE, Error, ErrorKind, SeekFrom};
|
||||||
use io::memchr;
|
use io::memchr;
|
||||||
|
use alloc::boxed::Box;
|
||||||
|
use collections::vec::Vec;
|
||||||
|
|
||||||
/// The `BufReader` struct adds buffering to any reader.
|
/// The `BufReader` struct adds buffering to any reader.
|
||||||
///
|
///
|
||||||
|
|
|
@ -13,6 +13,8 @@ use io::prelude::*;
|
||||||
|
|
||||||
use core::cmp;
|
use core::cmp;
|
||||||
use io::{self, SeekFrom, Error, ErrorKind};
|
use io::{self, SeekFrom, Error, ErrorKind};
|
||||||
|
use alloc::boxed::Box;
|
||||||
|
use collections::vec::Vec;
|
||||||
|
|
||||||
/// A `Cursor` wraps another type and provides it with a
|
/// A `Cursor` wraps another type and provides it with a
|
||||||
/// [`Seek`](trait.Seek.html) implementation.
|
/// [`Seek`](trait.Seek.html) implementation.
|
||||||
|
|
|
@ -20,6 +20,3 @@
|
||||||
|
|
||||||
pub use super::{Read, Write, Seek};
|
pub use super::{Read, Write, Seek};
|
||||||
pub use super::BufRead;
|
pub use super::BufRead;
|
||||||
|
|
||||||
pub use alloc::boxed::Box;
|
|
||||||
pub use collections::vec::Vec;
|
|
||||||
|
|
|
@ -21,9 +21,10 @@ pub use collections::{binary_heap, borrow, boxed, btree_map, btree_set, fmt, lin
|
||||||
pub mod prelude {
|
pub mod prelude {
|
||||||
pub mod v1 {
|
pub mod v1 {
|
||||||
pub use core::prelude::v1::*;
|
pub use core::prelude::v1::*;
|
||||||
pub use collections::*;
|
pub use collections::boxed::Box;
|
||||||
pub use io::{Read, Write, Seek};
|
pub use collections::borrow::ToOwned;
|
||||||
pub use io::BufRead;
|
pub use collections::string::{String, ToString};
|
||||||
|
pub use collections::vec::Vec;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue