Skip to content

Commit

Permalink
Merge pull request #1457 from shepmaster/patch-1
Browse files Browse the repository at this point in the history
Add categories to Cargo.toml
  • Loading branch information
mcarton authored Jan 20, 2017
2 parents 0397c6e + 83373c5 commit e3b5d46
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.

## 0.0.110 — 2017-01-20
* Add badges and categories to `Cargo.toml`

## 0.0.109 — 2017-01-19
* Update to *1.16.0-nightly (c07a6ae77 2017-01-17)*

Expand Down
10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clippy"
version = "0.0.109"
version = "0.0.110"
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",
"Andre Bogus <bogusandre@gmail.com>",
Expand All @@ -13,6 +13,11 @@ repository = "https://github.com/Manishearth/rust-clippy"
readme = "README.md"
license = "MPL-2.0"
keywords = ["clippy", "lint", "plugin"]
categories = ["development-tools"]

[badges]
travis-ci = { repository = "Manishearth/rust-clippy" }
appveyor = { repository = "Manishearth/rust-clippy" }

[lib]
name = "clippy"
Expand All @@ -25,7 +30,7 @@ test = false

[dependencies]
# begin automatic update
clippy_lints = { version = "0.0.109", path = "clippy_lints" }
clippy_lints = { version = "0.0.110", path = "clippy_lints" }
# end automatic update

[dev-dependencies]
Expand All @@ -36,6 +41,5 @@ rustc-serialize = "0.3"
clippy-mini-macro-test = { version = "0.1", path = "mini-macro" }
serde = "0.7"


[features]
debugging = []
2 changes: 1 addition & 1 deletion clippy_lints/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "clippy_lints"
# begin automatic update
version = "0.0.109"
version = "0.0.110"
# end automatic update
authors = [
"Manish Goregaokar <manishsmail@gmail.com>",
Expand Down
14 changes: 10 additions & 4 deletions clippy_lints/src/assign_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AssignOps {
|db| if let (Some(snip_a), Some(snip_r)) =
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
db.span_suggestion(expr.span,
"replace it with",
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
"replace it with",
format!("{} {}= {}",
snip_a,
op.node.as_str(),
snip_r));
});
};
// lhs op= l op r
Expand Down Expand Up @@ -178,8 +181,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AssignOps {
|db| if let (Some(snip_a), Some(snip_r)) =
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
db.span_suggestion(expr.span,
"replace it with",
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
"replace it with",
format!("{} {}= {}",
snip_a,
op.node.as_str(),
snip_r));
});
}
};
Expand Down

0 comments on commit e3b5d46

Please sign in to comment.