]> git.proxmox.com Git - cargo.git/commitdiff
delete unused try macro from read2.rs
authorNathan Froyd <froydnj@gmail.com>
Thu, 5 Jan 2017 21:26:48 +0000 (16:26 -0500)
committerNathan Froyd <froydnj@gmail.com>
Thu, 5 Jan 2017 21:26:48 +0000 (16:26 -0500)
src/cargo/util/read2.rs

index 7eac02783f8c76f0465dab2f3286d5fb8c6a9221..7ca5d81c89936bafa56994d241a25ed3d6443c21 100644 (file)
@@ -100,16 +100,6 @@ mod imp {
         done: bool,
     }
 
-    macro_rules! try {
-        ($e:expr) => (match $e {
-            Ok(e) => e,
-            Err(e) => {
-                println!("{} failed with {}", stringify!($e), e);
-                return Err(e)
-            }
-        })
-    }
-
     pub fn read2(out_pipe: ChildStdout,
                  err_pipe: ChildStderr,
                  mut data: &mut FnMut(bool, &mut Vec<u8>, bool)) -> io::Result<()> {