diff options
Diffstat (limited to 'library/std/src/sys/unix/stdio.rs')
| -rw-r--r-- | library/std/src/sys/unix/stdio.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/unix/stdio.rs b/library/std/src/sys/unix/stdio.rs index bbf5dd65fa5..a05fe8165cf 100644 --- a/library/std/src/sys/unix/stdio.rs +++ b/library/std/src/sys/unix/stdio.rs @@ -7,7 +7,7 @@ pub struct Stdout(()); pub struct Stderr(()); impl Stdin { - pub fn new() -> Stdin { + pub const fn new() -> Stdin { Stdin(()) } } @@ -28,7 +28,7 @@ impl io::Read for Stdin { } impl Stdout { - pub fn new() -> Stdout { + pub const fn new() -> Stdout { Stdout(()) } } @@ -53,7 +53,7 @@ impl io::Write for Stdout { } impl Stderr { - pub fn new() -> Stderr { + pub const fn new() -> Stderr { Stderr(()) } } |
