Rollup merge of #4129 - matthiaskrgr:if_chain, r=phansch

update if_chain to 1.0.0
This commit is contained in:
Philipp Hansch 2019-05-23 21:28:49 +02:00 committed by GitHub
commit 7e9db162b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 @@ pub fn expr(&mut self, e: &Expr) -> Option<Constant> {
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<_>>();