From da042ce46a022d699dae792164dd180f6dd61894 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 5 Sep 2013 10:52:18 +1000 Subject: [PATCH] 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(+) diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs index 3b979cc22663f..d1919905236b2 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,