Skip to content

Commit a83146a

Browse files
committed
Auto merge of rust-lang#13295 - waywardmonkeys:fix-2-typos, r=xFrednet
Fix a couple of typos. changelog: none
2 parents e5a1ef0 + 3f97261 commit a83146a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/returns.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ fn check_final_expr<'tcx>(
399399

400400
// Returns may be used to turn an expression into a statement in rustc's AST.
401401
// This allows the addition of attributes, like `#[allow]` (See: clippy#9361)
402-
// `#[expect(clippy::needless_return)]` needs to be handled separatly to
402+
// `#[expect(clippy::needless_return)]` needs to be handled separately to
403403
// actually fulfill the expectation (clippy::#12998)
404404
match cx.tcx.hir().attrs(expr.hir_id) {
405405
[] => {},

clippy_lints/src/use_self.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
229229
&& let impl_ty = cx.tcx.type_of(impl_id).instantiate_identity()
230230
&& same_type_and_consts(ty, impl_ty)
231231
// Ensure the type we encounter and the one from the impl have the same lifetime parameters. It may be that
232-
// the lifetime parameters of `ty` are ellided (`impl<'a> Foo<'a> { fn new() -> Self { Foo{..} } }`, in
232+
// the lifetime parameters of `ty` are elided (`impl<'a> Foo<'a> { fn new() -> Self { Foo{..} } }`, in
233233
// which case we must still trigger the lint.
234234
&& (has_no_lifetime(ty) || same_lifetimes(ty, impl_ty))
235235
{

0 commit comments

Comments
 (0)