2 use std
::io
::{self, Write}
;
4 use bstr
::{io::BufReadExt, ByteSlice}
;
6 fn main() -> Result
<(), Box
<dyn Error
>> {
7 let stdin
= io
::stdin();
8 let mut stdout
= io
::BufWriter
::new(io
::stdout());
10 let mut upper
= vec
![];
11 stdin
.lock().for_byte_line_with_terminator(|line
| {
13 line
.to_uppercase_into(&mut upper
);
14 stdout
.write_all(&upper
)?
;