File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ use if_chain::if_chain;
3
3
use matches:: matches;
4
4
use rustc:: hir;
5
5
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 } ;
7
7
use rustc:: hir:: intravisit:: { NestedVisitorMap , Visitor } ;
8
8
use rustc:: hir:: Node ;
9
9
use rustc:: hir:: * ;
@@ -349,7 +349,7 @@ pub fn method_chain_args<'a>(expr: &'a Expr, methods: &[&str]) -> Option<Vec<&'a
349
349
/// Returns true if the provided `def_id` is an entrypoint to a program
350
350
pub fn is_entrypoint_fn ( cx : & LateContext < ' _ , ' _ > , def_id : DefId ) -> bool {
351
351
if let Some ( ( entry_fn_def_id, _) ) = cx. tcx . entry_fn ( LOCAL_CRATE ) {
352
- return def_id == entry_fn_def_id
352
+ return def_id == entry_fn_def_id;
353
353
}
354
354
false
355
355
}
You can’t perform that action at this time.
0 commit comments