Update clippy_lints/src/casts/mod.rs
Co-authored-by: Alex Macleod <alex@macleod.io>
This commit is contained in:
parent
30979bfe83
commit
cc9f203543
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue