We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d24f68e commit 9de367dCopy full SHA for 9de367d
clippy_lints/src/utils/mod.rs
@@ -3,7 +3,7 @@ use if_chain::if_chain;
3
use matches::matches;
4
use rustc::hir;
5
use rustc::hir::def::Def;
6
-use rustc::hir::def_id::{DefId, LOCAL_CRATE, CRATE_DEF_INDEX};
+use rustc::hir::def_id::{DefId, CRATE_DEF_INDEX, LOCAL_CRATE};
7
use rustc::hir::intravisit::{NestedVisitorMap, Visitor};
8
use rustc::hir::Node;
9
use rustc::hir::*;
@@ -333,7 +333,7 @@ pub fn method_chain_args<'a>(expr: &'a Expr, methods: &[&str]) -> Option<Vec<&'a
333
/// Returns true if the provided `def_id` is an entrypoint to a program
334
pub fn is_entrypoint_fn(cx: &LateContext<'_, '_>, def_id: DefId) -> bool {
335
if let Some((entry_fn_def_id, _)) = cx.tcx.entry_fn(LOCAL_CRATE) {
336
- return def_id == entry_fn_def_id
+ return def_id == entry_fn_def_id;
337
}
338
false
339
0 commit comments