Skip to content

Commit

Permalink
[DO NOT MERGE] Dummy change to get CI output
Browse files Browse the repository at this point in the history
  • Loading branch information
xFrednet committed Jul 20, 2024
1 parent 057c4ae commit a3587bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions clippy_lints/src/casts/unnecessary_cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub(super) fn check<'tcx>(
UNNECESSARY_CAST,
expr.span,
format!(
"casting raw pointers to the same type and constness is unnecessary (`{cast_from}` -> `{cast_to}`)"
"casting raw pointers to the same type and constness is unnecessary (`{cast_from}` -> `{cast_to}`) :D"
),
"try",
cast_str.clone(),
Expand Down Expand Up @@ -166,7 +166,7 @@ pub(super) fn check<'tcx>(
cx,
UNNECESSARY_CAST,
expr.span,
format!("casting to the same type is unnecessary (`{cast_from}` -> `{cast_to}`)"),
format!("casting to the same type is unnecessary (`{cast_from}` -> `{cast_to}`) =^.^="),
"try",
if needs_block {
format!("{{ {cast_str} }}")
Expand Down Expand Up @@ -209,7 +209,7 @@ fn lint_unnecessary_cast(
cx,
UNNECESSARY_CAST,
expr.span,
format!("casting {literal_kind_name} literal to `{cast_to}` is unnecessary"),
format!("casting {literal_kind_name} literal to `{cast_to}` is unnecessary UwU"),
"try",
sugg,
Applicability::MachineApplicable,
Expand Down
7 changes: 0 additions & 7 deletions clippy_lints/src/methods/cloned_instead_of_copied.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ pub fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>, span: Span,
{
subst.type_at(0)
},
_ if is_trait_method(cx, expr, sym::Iterator) && msrv.meets(msrvs::ITERATOR_COPIED) => {
match get_iterator_item_ty(cx, recv_ty) {
// <T as Iterator>::Item
Some(ty) => ty,
_ => return,
}
},
_ => return,
};
match inner_ty.kind() {
Expand Down

0 comments on commit a3587bf

Please sign in to comment.