Skip to content

Commit

Permalink
Rust format
Browse files Browse the repository at this point in the history
  • Loading branch information
getreu committed Nov 6, 2019
1 parent 95e3ef6 commit 68fc37a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/codec/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,5 +156,4 @@ mod tests {
assert_eq!(offset, 3);
assert_eq!(err.unwrap().upto, 4);
}

}
12 changes: 3 additions & 9 deletions src/mission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,7 @@ pub struct Missions {

impl Missions {
/// Constructor. We assume that at least one encoding exist.
pub fn new(
encodings: &[String],
control_chars: &ControlChars,
flag_bytes: Option<u8>,
) -> Self {
pub fn new(encodings: &[String], control_chars: &ControlChars, flag_bytes: Option<u8>) -> Self {
let mut v = Vec::new();

let control_char_filtering = match *control_chars {
Expand Down Expand Up @@ -302,9 +298,7 @@ impl Missions {
{
eprintln!(
"Warning: range in `{}` extended to range `U+{:x}..U+{:x}`.",
enc_opt,
u_lower_ext,
u_upper_ext
enc_opt, u_lower_ext, u_upper_ext
);
}

Expand Down Expand Up @@ -366,7 +360,7 @@ mod tests {
#[test]
fn test_enc_opt_parser() {
// The following work-around will become obsolete with the upcoming
// [Make `ParseIntError` and `IntErrorKind` fully public ·
// [Make `ParseIntError` and `IntErrorKind` fully public ·
// Pull Request #55705](https://github.com/rust-lang/rust/pull/55705/files)
// let pie = ParseIntError {kind: std::num::InvalidDigit} //is private
let pie_invalid_digit = CliError::Format(u32::from_str("x").unwrap_err());
Expand Down
4 changes: 2 additions & 2 deletions src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ mod tests {
/*
println!("Scan of random Bytes:{:?} {:?} {:?} {:?}",
res0.v, res1.v, res2.v, res3.v);
*/ }
*/
}
}

}

0 comments on commit 68fc37a

Please sign in to comment.