]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/listings/ch09-error-handling/listing-09-06/src/main.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / doc / book / listings / ch09-error-handling / listing-09-06 / src / main.rs
index 437d858f44ebc00c95c058a31967f439c16910d7..4f0a52163bd47b92d6b693395036be15ffeb18fa 100644 (file)
@@ -1,7 +1,6 @@
 // ANCHOR: here
 use std::fs::File;
-use std::io;
-use std::io::Read;
+use std::io::{self, Read};
 
 fn read_username_from_file() -> Result<String, io::Error> {
     let f = File::open("hello.txt");