Skip to content

Commit

Permalink
Improved imports
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpedda committed Jul 17, 2019
1 parent a2b63af commit 9e5e0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/implicit_return.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use rustc::{
lint::{LateContext, LateLintPass, LintArray, LintPass},
};
use rustc_errors::Applicability;
use syntax_pos::Span;
use syntax::source_map::Span;

declare_clippy_lint! {
/// **What it does:** Checks for missing return statements at the end of a block.
Expand Down Expand Up @@ -138,7 +138,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ImplicitReturn {
_: FnKind<'tcx>,
_: &'tcx FnDecl,
body: &'tcx Body,
span: syntax::source_map::Span,
span: Span,
_: HirId,
) {
let def_id = cx.tcx.hir().body_owner_def_id(body.id());
Expand Down

0 comments on commit 9e5e0f8

Please sign in to comment.