This commit is contained in:
llogiq 2015-08-13 11:41:50 +02:00
commit 0ba08715e5
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ Lints included in this crate:
- `inline_always`: Warns on `#[inline(always)]`, because in most cases it is a bad idea
- `collapsible_if`: Warns on cases where two nested `if`-expressions can be collapsed into one, e.g. `if x { if y { foo() } }` can be written as `if x && y { foo() }`
- `zero_width_space`: Warns on encountering a unicode zero-width space
- `string_add_assign`: Warns on `x = x + ..` where `x` is a `String` and suggests using `push_str(..)` instead.
- `string_add_assign`: Warns on `x = x + ..` where `x` is a `String` and suggests using `push_str(..)` instead. Allowed by default.
- `string_add`: Matches `x + ..` where `x` is a `String` and where `string_add_assign` doesn't warn. Allowed by default.
- `needless_return`: Warns on using `return expr;` when a simple `expr` would suffice.
- `let_and_return`: Warns on doing `let x = expr; x` at the end of a function.

View File

@ -20,7 +20,7 @@ declare_lint! {
declare_lint! {
pub STRING_ADD,
Allow,
"expressions of the form on `x + ..` where x is a `String`"
"expressions of the form `x + ..` where x is a `String"
}
#[derive(Copy, Clone)]