update if_chain to 1.0.0
This commit is contained in:
parent
39d1fea6d6
commit
655aef7c6c
@ -29,7 +29,7 @@ toml = "0.5"
|
||||
unicode-normalization = "0.1"
|
||||
pulldown-cmark = "0.5.0"
|
||||
url = "1.7.0"
|
||||
if_chain = "0.1.3"
|
||||
if_chain = "1.0.0"
|
||||
smallvec = { version = "0.6.5", features = ["union"] }
|
||||
|
||||
[features]
|
||||
|
@ -251,7 +251,8 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
|
||||
if let ExprKind::Path(qpath) = &callee.node;
|
||||
let res = self.tables.qpath_res(qpath, callee.hir_id);
|
||||
if let Some(def_id) = res.opt_def_id();
|
||||
let def_path = self.lcx.get_def_path(def_id)
|
||||
let get_def_path = self.lcx.get_def_path(def_id);
|
||||
let def_path = get_def_path
|
||||
.iter()
|
||||
.map(LocalInternedString::get)
|
||||
.collect::<Vec<_>>();
|
||||
|
Loading…
Reference in New Issue
Block a user