Skip to content

Commit e3b5d46

Browse files
authored
Merge pull request #1457 from shepmaster/patch-1
Add categories to Cargo.toml
2 parents 0397c6e + 83373c5 commit e3b5d46

File tree

4 files changed

+21
-8
lines changed

4 files changed

+21
-8
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.110 — 2017-01-20
5+
* Add badges and categories to `Cargo.toml`
6+
47
## 0.0.109 — 2017-01-19
58
* Update to *1.16.0-nightly (c07a6ae77 2017-01-17)*
69

Cargo.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "clippy"
3-
version = "0.0.109"
3+
version = "0.0.110"
44
authors = [
55
"Manish Goregaokar <[email protected]>",
66
"Andre Bogus <[email protected]>",
@@ -13,6 +13,11 @@ repository = "https://github.com/Manishearth/rust-clippy"
1313
readme = "README.md"
1414
license = "MPL-2.0"
1515
keywords = ["clippy", "lint", "plugin"]
16+
categories = ["development-tools"]
17+
18+
[badges]
19+
travis-ci = { repository = "Manishearth/rust-clippy" }
20+
appveyor = { repository = "Manishearth/rust-clippy" }
1621

1722
[lib]
1823
name = "clippy"
@@ -25,7 +30,7 @@ test = false
2530

2631
[dependencies]
2732
# begin automatic update
28-
clippy_lints = { version = "0.0.109", path = "clippy_lints" }
33+
clippy_lints = { version = "0.0.110", path = "clippy_lints" }
2934
# end automatic update
3035

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

39-
4044
[features]
4145
debugging = []

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.109"
4+
version = "0.0.110"
55
# end automatic update
66
authors = [
77
"Manish Goregaokar <[email protected]>",

clippy_lints/src/assign_ops.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AssignOps {
9797
|db| if let (Some(snip_a), Some(snip_r)) =
9898
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
9999
db.span_suggestion(expr.span,
100-
"replace it with",
101-
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
100+
"replace it with",
101+
format!("{} {}= {}",
102+
snip_a,
103+
op.node.as_str(),
104+
snip_r));
102105
});
103106
};
104107
// lhs op= l op r
@@ -178,8 +181,11 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for AssignOps {
178181
|db| if let (Some(snip_a), Some(snip_r)) =
179182
(snippet_opt(cx, assignee.span), snippet_opt(cx, rhs.span)) {
180183
db.span_suggestion(expr.span,
181-
"replace it with",
182-
format!("{} {}= {}", snip_a, op.node.as_str(), snip_r));
184+
"replace it with",
185+
format!("{} {}= {}",
186+
snip_a,
187+
op.node.as_str(),
188+
snip_r));
183189
});
184190
}
185191
};

0 commit comments

Comments
 (0)