Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Add a tracking issue for file_buffered
  • Loading branch information
cuviper committed Sep 24, 2024
commit 458537ebc0e7d893103e03450f8830061bab1b2d
4 changes: 2 additions & 2 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ impl File {
/// 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>> {
// Allocate the buffer *first* so we don't affect the filesystem otherwise.
let buffer = io::BufReader::<Self>::try_new_buffer()?;
Expand Down Expand Up @@ -473,7 +473,7 @@ impl File {
/// 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>> {
// Allocate the buffer *first* so we don't affect the filesystem otherwise.
let buffer = io::BufWriter::<Self>::try_new_buffer()?;
Expand Down