]> git.lizzy.rs Git - rust.git/commitdiff
update if_chain to 1.0.0
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 23 May 2019 15:23:59 +0000 (17:23 +0200)
committerMatthias Krüger <matthias.krueger@famsik.de>
Thu, 23 May 2019 15:23:59 +0000 (17:23 +0200)
clippy_lints/Cargo.toml
clippy_lints/src/consts.rs

index 20b3a3e4937db24cb83ddb44c920dc262597ac04..42e92bc1c794e71c89b634a1e791226a9f4407b7 100644 (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]
index cbc10768bbc1604dc7b24e0fd395750a5616a9cd..16f1f1cab19de6c974b912ea669e40a1fbf18c2a 100644 (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<_>>();