Skip to content

Commit

Permalink
Partially bless clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigorenkoPV committed Sep 1, 2024
1 parent 11d570c commit 75bb732
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tools/clippy/tests/ui/ptr_arg.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ LL | fn cow_good_ret_ty<'a>(input: &'a Cow<'a, str>) -> &str {
|
= note: `-D elided-named-lifetimes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(elided_named_lifetimes)]`
help: consider specifying it explicitly
|
LL | fn cow_good_ret_ty<'a>(input: &'a Cow<'a, str>) -> &'a str {
| ++

error: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
--> tests/ui/ptr_arg.rs:13:14
Expand Down

0 comments on commit 75bb732

Please sign in to comment.