make senders and receivers struct repr(C) #481
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / clippy
succeeded
Dec 1, 2023 in 0s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0-nightly (87e1447aa 2023-11-30)
- cargo 1.76.0-nightly (26333c732 2023-11-28)
- clippy 0.1.76 (87e1447 2023-11-30)
Annotations
Check warning on line 128 in src/oneshot.rs
github-actions / clippy
non-canonical implementation of `clone` on a `Copy` type
warning: non-canonical implementation of `clone` on a `Copy` type
--> src/oneshot.rs:123:29
|
123 | fn clone(&self) -> Self {
| _____________________________^
124 | | Self {
125 | | ptr: self.ptr,
126 | | _phantom: PhantomData,
127 | | }
128 | | }
| |_____^ help: change this to: `{ *self }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_clone_impl
= note: `#[warn(clippy::non_canonical_clone_impl)]` on by default
Loading