Skip to content

Commit 19db2f1

Browse files
committed
Appeasing the Test Gods.
Seems I'm not smart enough to run the tests locally before committing.
1 parent 978f8c6 commit 19db2f1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clippy_lints/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ pub fn register_plugins(reg: &mut rustc_plugin::Registry<'_>, conf: &Conf) {
372372
reg.register_late_lint_pass(box unicode::Unicode);
373373
reg.register_late_lint_pass(box strings::StringAdd);
374374
reg.register_early_lint_pass(box returns::ReturnPass);
375-
reg.register_late_lint_pass(box missing_returns::MissingReturnsPass);
375+
reg.register_late_lint_pass(box missing_returns::Pass);
376376
reg.register_late_lint_pass(box methods::Pass);
377377
reg.register_late_lint_pass(box map_clone::Pass);
378378
reg.register_late_lint_pass(box shadow::Pass);

clippy_lints/src/missing_returns.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ declare_clippy_lint! {
3939
"use a return statement like `return expr` instead of an expression"
4040
}
4141

42-
pub struct MissingReturnsPass;
42+
pub struct Pass;
4343

44-
impl MissingReturnsPass {
44+
impl Pass {
4545
fn show_suggestion(cx: &LateContext<'_, '_>, span: syntax_pos::Span) {
4646
span_lint_and_then(cx, MISSING_RETURNS, span, "missing return statement", |db| {
4747
if let Some(snippet) = snippet_opt(cx, span) {
@@ -80,13 +80,13 @@ impl MissingReturnsPass {
8080
}
8181
}
8282

83-
impl LintPass for MissingReturnsPass {
83+
impl LintPass for Pass {
8484
fn get_lints(&self) -> LintArray {
8585
lint_array!(MISSING_RETURNS)
8686
}
8787
}
8888

89-
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingReturnsPass {
89+
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
9090
fn check_fn(
9191
&mut self,
9292
cx: &LateContext<'a, 'tcx>,

0 commit comments

Comments
 (0)