actually appease CI

I should always run cargo test before committing 😅
This commit is contained in:
Centri3 2023-05-24 11:06:56 -05:00
parent 5adb270c8d
commit 94e586e85d
2 changed files with 2 additions and 17 deletions

View file

@ -1,7 +1,6 @@
//@run-rustfix
#![allow(unused)]
#![warn(clippy::as_ptr_cast_mut)]
#![allow(clippy::wrong_self_convention)]
#![allow(clippy::wrong_self_convention, clippy::unnecessary_cast)]
struct MutPtrWrapper(Vec<u8>);
impl MutPtrWrapper {

View file

@ -12,19 +12,5 @@ error: casting the result of `as_ptr` to *mut i8
LL | let _: *mut i8 = string.as_ptr() as *mut _;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `string.as_mut_ptr()`
error: casting raw pointers to the same type and constness is unnecessary (`*mut u8` -> `*mut u8`)
--> $DIR/as_ptr_cast_mut.rs:25:13
|
LL | let _ = string.as_mut_ptr() as *mut u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `string.as_mut_ptr()`
|
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
error: casting raw pointers to the same type and constness is unnecessary (`*mut u8` -> `*mut u8`)
--> $DIR/as_ptr_cast_mut.rs:29:13
|
LL | let _ = nn.as_ptr() as *mut u8;
| ^^^^^^^^^^^^^^^^^^^^^^ help: try: `nn.as_ptr()`
error: aborting due to 4 previous errors
error: aborting due to 2 previous errors