diff options
| author | blyxyas <blyxyas@gmail.com> | 2024-05-18 18:08:11 +0200 |
|---|---|---|
| committer | blyxyas <blyxyas@gmail.com> | 2024-05-18 18:12:18 +0200 |
| commit | ae547e30009635de6f8d6451cf8e355e5d5207b7 (patch) | |
| tree | 0aba25c07c30537107e046ff717edefdbeded4d2 | |
| parent | 4f589e322d20c9ba7cc7e92369faf01d2737825c (diff) | |
| download | rust-ae547e30009635de6f8d6451cf8e355e5d5207b7.tar.gz rust-ae547e30009635de6f8d6451cf8e355e5d5207b7.zip | |
Fix typos (taking into account review comments)
| -rw-r--r-- | clippy_lints/src/methods/needless_collect.rs | 2 | ||||
| -rw-r--r-- | tests/ui/ptr_arg.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/needless_collect.rs b/clippy_lints/src/methods/needless_collect.rs index 1c695655536..f26f164fa54 100644 --- a/clippy_lints/src/methods/needless_collect.rs +++ b/clippy_lints/src/methods/needless_collect.rs @@ -127,7 +127,7 @@ pub(super) fn check<'tcx>( } } -/// checks for for collecting into a (generic) method or function argument +/// checks for collecting into a (generic) method or function argument /// taking an `IntoIterator` fn check_collect_into_intoiterator<'tcx>( cx: &LateContext<'tcx>, diff --git a/tests/ui/ptr_arg.rs b/tests/ui/ptr_arg.rs index fcd716f4144..5d6e488972c 100644 --- a/tests/ui/ptr_arg.rs +++ b/tests/ui/ptr_arg.rs @@ -282,7 +282,7 @@ mod issue_9218 { todo!() } - // These two's return types don't use use 'a so it's not okay + // These two's return types don't use 'a so it's not okay fn cow_bad_ret_ty_1<'a>(input: &'a Cow<'a, str>) -> &'static str { //~^ ERROR: using a reference to `Cow` is not recommended todo!() |
