Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9de367d

Browse files
committedJan 23, 2019
cargo fmt
1 parent d24f68e commit 9de367d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎clippy_lints/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use if_chain::if_chain;
33
use matches::matches;
44
use rustc::hir;
55
use rustc::hir::def::Def;
6-
use rustc::hir::def_id::{DefId, LOCAL_CRATE, CRATE_DEF_INDEX};
6+
use rustc::hir::def_id::{DefId, CRATE_DEF_INDEX, LOCAL_CRATE};
77
use rustc::hir::intravisit::{NestedVisitorMap, Visitor};
88
use rustc::hir::Node;
99
use rustc::hir::*;
@@ -333,7 +333,7 @@ pub fn method_chain_args<'a>(expr: &'a Expr, methods: &[&str]) -> Option<Vec<&'a
333333
/// Returns true if the provided `def_id` is an entrypoint to a program
334334
pub fn is_entrypoint_fn(cx: &LateContext<'_, '_>, def_id: DefId) -> bool {
335335
if let Some((entry_fn_def_id, _)) = cx.tcx.entry_fn(LOCAL_CRATE) {
336-
return def_id == entry_fn_def_id
336+
return def_id == entry_fn_def_id;
337337
}
338338
false
339339
}

0 commit comments

Comments
 (0)
Please sign in to comment.