Skip to content

Commit a5daa7f

Browse files
committed
fix: use crate DEFAULT_BUF_SIZE
1 parent 023849d commit a5daa7f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/buffered/bufreader.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#[cfg(feature = "alloc")]
22
use alloc::{string::String, vec::Vec};
33

4-
use crate::{BufRead, Read, Result};
5-
6-
const DEFAULT_BUF_SIZE: usize = 1024;
4+
use crate::{BufRead, DEFAULT_BUF_SIZE, Read, Result};
75

86
/// The `BufReader<R>` struct adds buffering to any reader.
97
pub struct BufReader<R> {

0 commit comments

Comments
 (0)