diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-08-20 00:00:00 +0000 | 
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2020-08-21 13:17:20 +0200 | 
| commit | 4a00421ba4daae419d06b67bd1bb46d7930b0dc7 (patch) | |
| tree | d047e2c2fce8a6171532a1671e1363227bbd4eed /library/std/src/sys/wasi/stdio.rs | |
| parent | 479c23bb493e4ea801c125cfc54e70723a9aeeb5 (diff) | |
| download | rust-4a00421ba4daae419d06b67bd1bb46d7930b0dc7.tar.gz rust-4a00421ba4daae419d06b67bd1bb46d7930b0dc7.zip | |
Make raw standard stream constructors const
Diffstat (limited to 'library/std/src/sys/wasi/stdio.rs')
| -rw-r--r-- | library/std/src/sys/wasi/stdio.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/library/std/src/sys/wasi/stdio.rs b/library/std/src/sys/wasi/stdio.rs index cc27e2ee583..23baafabf79 100644 --- a/library/std/src/sys/wasi/stdio.rs +++ b/library/std/src/sys/wasi/stdio.rs @@ -7,7 +7,7 @@ pub struct Stdout; pub struct Stderr; impl Stdin { - pub fn new() -> Stdin { + pub const fn new() -> Stdin { Stdin } @@ -33,7 +33,7 @@ impl io::Read for Stdin { } impl Stdout { - pub fn new() -> Stdout { + pub const fn new() -> Stdout { Stdout } @@ -62,7 +62,7 @@ impl io::Write for Stdout { } impl Stderr { - pub fn new() -> Stderr { + pub const fn new() -> Stderr { Stderr } | 
