about summary refs log tree commit diff
path: root/src/libstd/io/mod.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2016-09-30 21:01:53 +0000
committerBrian Anderson <banderson@mozilla.com>2016-11-01 17:08:24 +0000
commit6d54cd4b2cd864fbd6f2f8d036903f88b6ea79b4 (patch)
tree72941b7a0515fc878ffc9f63d48e25c6dcb80089 /src/libstd/io/mod.rs
parent8b2600dbf9a02a19acc92db5d980986cad2ea38d (diff)
downloadrust-6d54cd4b2cd864fbd6f2f8d036903f88b6ea79b4.tar.gz
rust-6d54cd4b2cd864fbd6f2f8d036903f88b6ea79b4.zip
std: Move a plattform-specific constant to sys::stdio
Diffstat (limited to 'src/libstd/io/mod.rs')
-rw-r--r--src/libstd/io/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index 37c3f70d54d..193f396c0d4 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -289,7 +289,7 @@ mod lazy;
 mod util;
 mod stdio;
 
-const DEFAULT_BUF_SIZE: usize = 8 * 1024;
+const DEFAULT_BUF_SIZE: usize = ::sys_common::io::DEFAULT_BUF_SIZE;
 
 // A few methods below (read_to_string, read_line) will append data into a
 // `String` buffer, but we need to be pretty careful when doing this. The