mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
Merge pull request #1457 from shepmaster/patch-1
Add categories to Cargo.toml
This commit is contained in:
commit
e3b5d46cbe
4 changed files with 21 additions and 8 deletions
|
@ -1,6 +1,9 @@
|
||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to this project will be documented in this file.
|
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
|
## 0.0.109 — 2017-01-19
|
||||||
* Update to *1.16.0-nightly (c07a6ae77 2017-01-17)*
|
* Update to *1.16.0-nightly (c07a6ae77 2017-01-17)*
|
||||||
|
|
||||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "clippy"
|
name = "clippy"
|
||||||
version = "0.0.109"
|
version = "0.0.110"
|
||||||
authors = [
|
authors = [
|
||||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
"Manish Goregaokar <manishsmail@gmail.com>",
|
||||||
"Andre Bogus <bogusandre@gmail.com>",
|
"Andre Bogus <bogusandre@gmail.com>",
|
||||||
|
@ -13,6 +13,11 @@ repository = "https://github.com/Manishearth/rust-clippy"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "MPL-2.0"
|
license = "MPL-2.0"
|
||||||
keywords = ["clippy", "lint", "plugin"]
|
keywords = ["clippy", "lint", "plugin"]
|
||||||
|
categories = ["development-tools"]
|
||||||
|
|
||||||
|
[badges]
|
||||||
|
travis-ci = { repository = "Manishearth/rust-clippy" }
|
||||||
|
appveyor = { repository = "Manishearth/rust-clippy" }
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "clippy"
|
name = "clippy"
|
||||||
|
@ -25,7 +30,7 @@ test = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# begin automatic update
|
# begin automatic update
|
||||||
clippy_lints = { version = "0.0.109", path = "clippy_lints" }
|
clippy_lints = { version = "0.0.110", path = "clippy_lints" }
|
||||||
# end automatic update
|
# end automatic update
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
@ -36,6 +41,5 @@ rustc-serialize = "0.3"
|
||||||
clippy-mini-macro-test = { version = "0.1", path = "mini-macro" }
|
clippy-mini-macro-test = { version = "0.1", path = "mini-macro" }
|
||||||
serde = "0.7"
|
serde = "0.7"
|
||||||
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
debugging = []
|
debugging = []
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[package]
|
[package]
|
||||||
name = "clippy_lints"
|
name = "clippy_lints"
|
||||||
# begin automatic update
|
# begin automatic update
|
||||||
version = "0.0.109"
|
version = "0.0.110"
|
||||||
# end automatic update
|
# end automatic update
|
||||||
authors = [
|
authors = [
|
||||||
"Manish Goregaokar <manishsmail@gmail.com>",
|
"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)) =
|
|db| if let (Some(snip_a), Some(snip_r)) =
|
||||||
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
|
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
|
||||||
db.span_suggestion(expr.span,
|
db.span_suggestion(expr.span,
|
||||||
"replace it with",
|
"replace it with",
|
||||||
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
|
format!("{} {}= {}",
|
||||||
|
snip_a,
|
||||||
|
op.node.as_str(),
|
||||||
|
snip_r));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
// lhs op= l op 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)) =
|
|db| if let (Some(snip_a), Some(snip_r)) =
|
||||||
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
|
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
|
||||||
db.span_suggestion(expr.span,
|
db.span_suggestion(expr.span,
|
||||||
"replace it with",
|
"replace it with",
|
||||||
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
|
format!("{} {}= {}",
|
||||||
|
snip_a,
|
||||||
|
op.node.as_str(),
|
||||||
|
snip_r));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue