Version bump

This commit is contained in:
Oliver Schneider 2018-01-10 09:50:58 +01:00
parent 75c92aa2d2
commit 41a710e3f4
No known key found for this signature in database
GPG key ID: 1D5CB4FC597C3004
4 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.
## 0.0.179
* Rustup to *rustc 1.25.0-nightly (61452e506 2018-01-09)*
## 0.0.178
* Rustup to *rustc 1.25.0-nightly (ee220daca 2018-01-07)*

View file

@ -1,6 +1,6 @@
[package]
name = "clippy"
version = "0.0.178"
version = "0.0.179"
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",
"Andre Bogus <bogusandre@gmail.com>",
@ -37,7 +37,7 @@ path = "src/driver.rs"
[dependencies]
# begin automatic update
clippy_lints = { version = "0.0.178", path = "clippy_lints" }
clippy_lints = { version = "0.0.179", path = "clippy_lints" }
# end automatic update
cargo_metadata = "0.2"
regex = "0.2"

View file

@ -1,7 +1,7 @@
[package]
name = "clippy_lints"
# begin automatic update
version = "0.0.178"
version = "0.0.179"
# end automatic update
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",

View file

@ -35,7 +35,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
if let ExprStruct(_, ref fields, Some(ref base)) = expr.node {
let ty = cx.tables.expr_ty(expr);
if let ty::TyAdt(def, _) = ty.sty {
if fields.len() == def.struct_variant().fields.len() {
if fields.len() == def.non_enum_variant().fields.len() {
span_lint(
cx,
NEEDLESS_UPDATE,