Rollup merge of #4129 - matthiaskrgr:if_chain, r=phansch
update if_chain to 1.0.0
This commit is contained in:
commit
7e9db162b5
@ -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 @@ 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<_>>();
|
||||
|
Loading…
Reference in New Issue
Block a user