Update clippy_lints/src/casts/mod.rs

Co-authored-by: Alex Macleod <alex@macleod.io>
This commit is contained in:
clubby789 2022-08-29 15:17:23 +01:00 committed by GitHub
parent 30979bfe83
commit cc9f203543
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -570,7 +570,8 @@ declare_clippy_lint! {
"borrowing just to cast to a raw pointer"
}
declare_clippy_lint! {
/// **What it does:** Checks for a raw slice being cast to a slice pointer
/// ### What it does
/// Checks for a raw slice being cast to a slice pointer
///
/// ### Why is this bad?
/// This can result in multiple `&mut` references to the same location when only a pointer is