Skip to content

Commit

Permalink
Remove eprintln
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Mar 2, 2019
1 parent a3c6ac0 commit 42aa5a1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rustfmt_diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,11 @@ impl std::str::FromStr for ModifiedLines {
(Some(orig), Some(removed), Some(added)) => (orig, removed, added),
_ => return Err(()),
};
eprintln!("{} {} {}", orig, rem, new_lines);
let (orig, rem, new_lines): (u32, u32, usize) =
match (orig.parse(), rem.parse(), new_lines.parse()) {
(Ok(a), Ok(b), Ok(c)) => (a, b, c),
_ => return Err(()),
};
eprintln!("{} {} {}", orig, rem, new_lines);
let lines = lines.by_ref().take(new_lines);
let lines: Vec<_> = lines.map(ToOwned::to_owned).collect();
if lines.len() != new_lines {
Expand Down

0 comments on commit 42aa5a1

Please sign in to comment.