mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
chore: remove duplicate words
This commit is contained in:
parent
b5f94366e2
commit
f715bfc344
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ declare_clippy_lint! {
|
||||||
/// and it may be desirable to do so consistently for style.
|
/// and it may be desirable to do so consistently for style.
|
||||||
///
|
///
|
||||||
/// However, removing the brackets also introduces a public constant named after the struct,
|
/// However, removing the brackets also introduces a public constant named after the struct,
|
||||||
/// so this is not just a syntactic simplification but an an API change, and adding them back
|
/// so this is not just a syntactic simplification but an API change, and adding them back
|
||||||
/// is a *breaking* API change.
|
/// is a *breaking* API change.
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
|
@ -44,7 +44,7 @@ declare_clippy_lint! {
|
||||||
/// and it may be desirable to do so consistently for style.
|
/// and it may be desirable to do so consistently for style.
|
||||||
///
|
///
|
||||||
/// However, removing the brackets also introduces a public constant named after the variant,
|
/// However, removing the brackets also introduces a public constant named after the variant,
|
||||||
/// so this is not just a syntactic simplification but an an API change, and adding them back
|
/// so this is not just a syntactic simplification but an API change, and adding them back
|
||||||
/// is a *breaking* API change.
|
/// is a *breaking* API change.
|
||||||
///
|
///
|
||||||
/// ### Example
|
/// ### Example
|
||||||
|
|
|
@ -258,7 +258,7 @@ impl<'tcx> NonCopyConst<'tcx> {
|
||||||
// e.g. implementing `has_frozen_variant` described above, and not running this function
|
// e.g. implementing `has_frozen_variant` described above, and not running this function
|
||||||
// when the type doesn't have any frozen variants would be the 'correct' way for the 2nd
|
// when the type doesn't have any frozen variants would be the 'correct' way for the 2nd
|
||||||
// case (that actually removes another suboptimal behavior (I won't say 'false positive') where,
|
// case (that actually removes another suboptimal behavior (I won't say 'false positive') where,
|
||||||
// similar to 2., but with the a frozen variant) (e.g. borrowing
|
// similar to 2., but with a frozen variant) (e.g. borrowing
|
||||||
// `borrow_interior_mutable_const::enums::AssocConsts::TO_BE_FROZEN_VARIANT`).
|
// `borrow_interior_mutable_const::enums::AssocConsts::TO_BE_FROZEN_VARIANT`).
|
||||||
// I chose this way because unfrozen enums as assoc consts are rare (or, hopefully, none).
|
// I chose this way because unfrozen enums as assoc consts are rare (or, hopefully, none).
|
||||||
matches!(err, ErrorHandled::TooGeneric(..))
|
matches!(err, ErrorHandled::TooGeneric(..))
|
||||||
|
|
Loading…
Reference in a new issue