Skip to content

Commit 41a710e

Browse files
committed
Version bump
1 parent 75c92aa commit 41a710e

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## 0.0.179
5+
* Rustup to *rustc 1.25.0-nightly (61452e506 2018-01-09)*
6+
47
## 0.0.178
58
* Rustup to *rustc 1.25.0-nightly (ee220daca 2018-01-07)*
69

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.0.178"
3+
version = "0.0.179"
44
authors = [
55
"Manish Goregaokar <[email protected]>",
66
"Andre Bogus <[email protected]>",
@@ -37,7 +37,7 @@ path = "src/driver.rs"
3737

3838
[dependencies]
3939
# begin automatic update
40-
clippy_lints = { version = "0.0.178", path = "clippy_lints" }
40+
clippy_lints = { version = "0.0.179", path = "clippy_lints" }
4141
# end automatic update
4242
cargo_metadata = "0.2"
4343
regex = "0.2"

clippy_lints/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "clippy_lints"
33
# begin automatic update
4-
version = "0.0.178"
4+
version = "0.0.179"
55
# end automatic update
66
authors = [
77
"Manish Goregaokar <[email protected]>",

clippy_lints/src/needless_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
3535
if let ExprStruct(_, ref fields, Some(ref base)) = expr.node {
3636
let ty = cx.tables.expr_ty(expr);
3737
if let ty::TyAdt(def, _) = ty.sty {
38-
if fields.len() == def.struct_variant().fields.len() {
38+
if fields.len() == def.non_enum_variant().fields.len() {
3939
span_lint(
4040
cx,
4141
NEEDLESS_UPDATE,

0 commit comments

Comments
 (0)