mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Merge pull request #1457 from shepmaster/patch-1
Add categories to Cargo.toml
This commit is contained in:
commit
e3b5d46cbe
@ -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)*
|
||||
|
||||
|
10
Cargo.toml
10
Cargo.toml
@ -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>",
|
||||
@ -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"
|
||||
@ -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]
|
||||
@ -36,6 +41,5 @@ rustc-serialize = "0.3"
|
||||
clippy-mini-macro-test = { version = "0.1", path = "mini-macro" }
|
||||
serde = "0.7"
|
||||
|
||||
|
||||
[features]
|
||||
debugging = []
|
||||
|
@ -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>",
|
||||
|
@ -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
|
||||
@ -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));
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user