update if_chain to 1.0.0

This commit is contained in:
Matthias Krüger 2019-05-23 17:23:59 +02:00
parent 39d1fea6d6
commit 655aef7c6c
2 changed files with 3 additions and 2 deletions

View File

@ -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]

View File

@ -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<_>>();