From da042ce46a022d699dae792164dd180f6dd61894 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 5 Sep 2013 10:52:18 +1000 Subject: Implement Stream automatically for Reader + Writer This is consistent with the existing documentation but was not the actual behaviour, which I've found to be rather a nuisance, actually. --- src/libstd/rt/io/mod.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstd/rt/io') diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs index 3b979cc2266..d1919905236 100644 --- a/src/libstd/rt/io/mod.rs +++ b/src/libstd/rt/io/mod.rs @@ -451,6 +451,8 @@ pub trait Writer { pub trait Stream: Reader + Writer { } +impl Stream for T; + pub enum SeekStyle { /// Seek from the beginning of the stream SeekSet, -- cgit 1.4.1-3-g733a5