fix typos in default constructed unit structs, implied bounds, ineffective open options

This commit is contained in:
Takashi Idobe 2023-12-22 18:54:48 -05:00
parent e0b25c5a64
commit 9c2be205b3
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ declare_clippy_lint! {
#[clippy::version = "1.71.0"]
pub DEFAULT_CONSTRUCTED_UNIT_STRUCTS,
complexity,
"unit structs can be contructed without calling `default`"
"unit structs can be constructed without calling `default`"
}
declare_lint_pass!(DefaultConstructedUnitStructs => [DEFAULT_CONSTRUCTED_UNIT_STRUCTS]);

View File

@ -158,7 +158,7 @@ fn try_resolve_type<'tcx>(
/// This function tries to, for all generic type parameters in a supertrait predicate `trait ...<U>:
/// GenericTrait<U>`, check if the substituted type in the implied-by bound matches with what's
/// subtituted in the implied bound.
/// substituted in the implied bound.
///
/// Consider this example.
/// ```rust,ignore

View File

@ -16,7 +16,7 @@ declare_clippy_lint! {
///
/// ### Why is this bad?
/// `.append(true)` already enables `write(true)`, making this one
/// superflous.
/// superfluous.
///
/// ### Example
/// ```no_run