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;
33use matches:: matches;
44use rustc:: hir;
55use 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 } ;
77use rustc:: hir:: intravisit:: { NestedVisitorMap , Visitor } ;
88use rustc:: hir:: Node ;
99use 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
334334pub 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}
You can’t perform that action at this time.
0 commit comments