]> git.lizzy.rs Git - rust.git/commitdiff
clean tests/ui/unused_io_amount.rs
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 15:03:26 +0000 (16:03 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Thu, 11 May 2017 15:22:32 +0000 (16:22 +0100)
Cleaning the empty lines for clarity.

tests/ui/unused_io_amount.rs
tests/ui/unused_io_amount.stderr

index 7456a3602d664a657879adbc89617a39be136821..0ee9069a17ce8a7ca733323c94d5643781867cad 100644 (file)
@@ -15,19 +15,15 @@ fn try_macro<T: io::Read + io::Write>(s: &mut T) -> io::Result<()> {
 
 fn question_mark<T: io::Read + io::Write>(s: &mut T) -> io::Result<()> {
     s.write(b"test")?;
-
     let mut buf = [0u8; 4];
     s.read(&mut buf)?;
-
     Ok(())
 }
 
 fn unwrap<T: io::Read + io::Write>(s: &mut T) {
     s.write(b"test").unwrap();
-
     let mut buf = [0u8; 4];
     s.read(&mut buf).unwrap();
-
 }
 
 fn main() {
index 54d8158908faaf54e4d13b96792e63ef3be79cf6..7a5643e831cadc313f2cd8c82793c5f75a9ba51c 100644 (file)
@@ -25,25 +25,25 @@ error: handle written amount returned or use `Write::write_all` instead
    = note: #[deny(unused_io_amount)] on by default
 
 error: handle read amount returned or use `Read::read_exact` instead
-  --> $DIR/unused_io_amount.rs:20:5
+  --> $DIR/unused_io_amount.rs:19:5
    |
-20 |     s.read(&mut buf)?;
+19 |     s.read(&mut buf)?;
    |     ^^^^^^^^^^^^^^^^^
    |
    = note: #[deny(unused_io_amount)] on by default
 
 error: handle written amount returned or use `Write::write_all` instead
-  --> $DIR/unused_io_amount.rs:26:5
+  --> $DIR/unused_io_amount.rs:24:5
    |
-26 |     s.write(b"test").unwrap();
+24 |     s.write(b"test").unwrap();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[deny(unused_io_amount)] on by default
 
 error: handle read amount returned or use `Read::read_exact` instead
-  --> $DIR/unused_io_amount.rs:29:5
+  --> $DIR/unused_io_amount.rs:26:5
    |
-29 |     s.read(&mut buf).unwrap();
+26 |     s.read(&mut buf).unwrap();
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: #[deny(unused_io_amount)] on by default