Skip to content

Commit e84a378

Browse files
committed
Run cargo fmt.
1 parent d958ec5 commit e84a378

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/bin/main.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,10 @@ fn format_string(input: String, options: GetOptsOptions) -> Result<i32, FailureE
256256
match options.emit_mode {
257257
// Emit modes which work with standard input
258258
// None means default, which is Stdout.
259-
None |
260-
Some(EmitMode::Stdout) |
261-
Some(EmitMode::Checkstyle) |
262-
Some(EmitMode::Json) => {}
259+
None | Some(EmitMode::Stdout) | Some(EmitMode::Checkstyle) | Some(EmitMode::Json) => {}
263260
Some(emit_mode) => {
264261
return Err(OperationError::StdinBadEmit(emit_mode).into());
265-
},
262+
}
266263
}
267264
// emit mode is always Stdout for Stdin.
268265
config

src/emitter/checkstyle.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ mod tests {
7575
fn emits_empty_record_on_file_with_no_mismatches() {
7676
let file_name = "src/well_formatted.rs";
7777
let mut writer = Vec::new();
78-
let _ = output_checkstyle_file(&mut writer, &FileName::Real(PathBuf::from(file_name)), vec![]);
78+
let _ = output_checkstyle_file(
79+
&mut writer,
80+
&FileName::Real(PathBuf::from(file_name)),
81+
vec![],
82+
);
7983
assert_eq!(
8084
&writer[..],
8185
format!(r#"<file name="{}"></file>"#, file_name).as_bytes()

0 commit comments

Comments
 (0)