mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Add a tracking issue for file_buffered
This commit is contained in:
parent
0999b019f8
commit
458537ebc0
@ -405,7 +405,7 @@ impl File {
|
|||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "file_buffered", issue = "none")]
|
#[unstable(feature = "file_buffered", issue = "130804")]
|
||||||
pub fn open_buffered<P: AsRef<Path>>(path: P) -> io::Result<io::BufReader<File>> {
|
pub fn open_buffered<P: AsRef<Path>>(path: P) -> io::Result<io::BufReader<File>> {
|
||||||
// Allocate the buffer *first* so we don't affect the filesystem otherwise.
|
// Allocate the buffer *first* so we don't affect the filesystem otherwise.
|
||||||
let buffer = io::BufReader::<Self>::try_new_buffer()?;
|
let buffer = io::BufReader::<Self>::try_new_buffer()?;
|
||||||
@ -473,7 +473,7 @@ impl File {
|
|||||||
/// Ok(())
|
/// Ok(())
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "file_buffered", issue = "none")]
|
#[unstable(feature = "file_buffered", issue = "130804")]
|
||||||
pub fn create_buffered<P: AsRef<Path>>(path: P) -> io::Result<io::BufWriter<File>> {
|
pub fn create_buffered<P: AsRef<Path>>(path: P) -> io::Result<io::BufWriter<File>> {
|
||||||
// Allocate the buffer *first* so we don't affect the filesystem otherwise.
|
// Allocate the buffer *first* so we don't affect the filesystem otherwise.
|
||||||
let buffer = io::BufWriter::<Self>::try_new_buffer()?;
|
let buffer = io::BufWriter::<Self>::try_new_buffer()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user