Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add categories to Cargo.toml #1457

Merged
merged 4 commits into from
Jan 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>",
"Andre Bogus <[email protected]>",
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 <[email protected]>",
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