Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed May 27, 2019
1 parent e6a0cc5 commit f77d51c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/tty/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,11 @@ fn read_digits_until(rdr: &mut RawReader, sep: char) -> Result<u32> {
loop {
match rdr.next_char()? {
digit @ '0'..='9' => {
num = num.saturating_mul(10).saturating_add(digit.to_digit(10).unwrap());
continue
},
num = num
.saturating_mul(10)
.saturating_add(digit.to_digit(10).unwrap());
continue;
}
c if c == sep => break,
_ => return Err(error::ReadlineError::from(io::ErrorKind::InvalidData)),
}
Expand Down
3 changes: 2 additions & 1 deletion src/undo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ impl Changeset {
mark
}

/// Returns `true` when changes happen between the last call to `begin` and this `end`.
/// Returns `true` when changes happen between the last call to `begin` and
/// this `end`.
pub fn end(&mut self) -> bool {
debug!(target: "rustyline", "Changeset::end");
self.redos.clear();
Expand Down

0 comments on commit f77d51c

Please sign in to comment.