mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
Rollup merge of #4129 - matthiaskrgr:if_chain, r=phansch
update if_chain to 1.0.0
This commit is contained in:
commit
7e9db162b5
2 changed files with 3 additions and 2 deletions
|
@ -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 a new issue