Skip to content

Commit ef02e3a

Browse files
committed
Run ./util/dev fmt
1 parent 5f4b5b9 commit ef02e3a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

clippy_dev/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn main() {
6767
match matches.subcommand() {
6868
("fmt", Some(matches)) => {
6969
fmt::run(matches.is_present("check"), matches.is_present("verbose"));
70-
}
70+
},
7171
("update_lints", Some(matches)) => {
7272
if matches.is_present("print-only") {
7373
print_lints();
@@ -76,8 +76,8 @@ fn main() {
7676
} else {
7777
update_lints(&UpdateMode::Change);
7878
}
79-
}
80-
_ => {}
79+
},
80+
_ => {},
8181
}
8282
}
8383

clippy_lints/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ pub fn read_conf(args: &[syntax::ast::NestedMetaItem], sess: &Session) -> Conf {
332332
sess.struct_err(&format!("error finding Clippy's configuration file: {}", error))
333333
.emit();
334334
None
335-
}
335+
},
336336
}
337337
};
338338

@@ -361,13 +361,13 @@ pub fn read_conf(args: &[syntax::ast::NestedMetaItem], sess: &Session) -> Conf {
361361
}
362362

363363
conf
364-
}
364+
},
365365
Err((err, span)) => {
366366
sess.struct_span_err(span, err)
367367
.span_note(span, "Clippy will use default configuration")
368368
.emit();
369369
toml::from_str("").expect("we never error on empty config files")
370-
}
370+
},
371371
}
372372
}
373373

clippy_lints/src/trivially_copy_pass_by_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TriviallyCopyPassByRef {
160160
return;
161161
}
162162
}
163-
}
163+
},
164164
FnKind::Method(..) => (),
165165
_ => return,
166166
}

0 commit comments

Comments
 (0)