diff options
| author | Chris Morgan <me@chrismorgan.info> | 2013-09-05 10:52:18 +1000 |
|---|---|---|
| committer | Chris Morgan <me@chrismorgan.info> | 2013-09-05 10:52:18 +1000 |
| commit | da042ce46a022d699dae792164dd180f6dd61894 (patch) | |
| tree | 31afc8695ad8584d1af7952f4f86f81e4dec81e0 /src/libstd/rt | |
| parent | b161e09e03a5a0135557daa7166d290a515fbec2 (diff) | |
| download | rust-da042ce46a022d699dae792164dd180f6dd61894.tar.gz rust-da042ce46a022d699dae792164dd180f6dd61894.zip | |
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.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/io/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<T: Reader + Writer> Stream for T; + pub enum SeekStyle { /// Seek from the beginning of the stream SeekSet, |
