Skip to content

Commit 655aef7

Browse files
committed
update if_chain to 1.0.0
1 parent 39d1fea commit 655aef7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clippy_lints/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ toml = "0.5"
2929
unicode-normalization = "0.1"
3030
pulldown-cmark = "0.5.0"
3131
url = "1.7.0"
32-
if_chain = "0.1.3"
32+
if_chain = "1.0.0"
3333
smallvec = { version = "0.6.5", features = ["union"] }
3434

3535
[features]

clippy_lints/src/consts.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
251251
if let ExprKind::Path(qpath) = &callee.node;
252252
let res = self.tables.qpath_res(qpath, callee.hir_id);
253253
if let Some(def_id) = res.opt_def_id();
254-
let def_path = self.lcx.get_def_path(def_id)
254+
let get_def_path = self.lcx.get_def_path(def_id);
255+
let def_path = get_def_path
255256
.iter()
256257
.map(LocalInternedString::get)
257258
.collect::<Vec<_>>();

0 commit comments

Comments
 (0)