Update to 2024 Edition #379
Annotations
6 errors and 1 warning
Run Clippy:
crates/sys/src/lib.rs#L25553
error: this is an outer doc comment and does not apply to the parent module or crate
--> sys/src/bindings.rs:25553:1
|
25553 | #[doc = "!< Result does not fit in the requested type"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_doc_comments
help: use an inner doc comment to document the parent module or crate
|
25553 - #[doc = "!< Result does not fit in the requested type"]
25553 + //!< Result does not fit in the requested type
|
|
Run Clippy:
crates/sys/src/lib.rs#L25551
error: this is an outer doc comment and does not apply to the parent module or crate
--> sys/src/bindings.rs:25551:1
|
25551 | #[doc = "!< No valid digits after the leading whitespace, sign and prefix"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_doc_comments
help: use an inner doc comment to document the parent module or crate
|
25551 - #[doc = "!< No valid digits after the leading whitespace, sign and prefix"]
25551 + //!< No valid digits after the leading whitespace, sign and prefix
|
|
Run Clippy:
crates/sys/src/lib.rs#L25549
error: this is an outer doc comment and does not apply to the parent module or crate
--> sys/src/bindings.rs:25549:1
|
25549 | #[doc = "!< Multiple leading `+` or `-` characters, or leading `-` character if the type is unsigned"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_doc_comments
help: use an inner doc comment to document the parent module or crate
|
25549 - #[doc = "!< Multiple leading `+` or `-` characters, or leading `-` character if the type is unsigned"]
25549 + //!< Multiple leading `+` or `-` characters, or leading `-` character if the type is unsigned
|
|
Run Clippy:
crates/sys/src/lib.rs#L25547
error: this is an outer doc comment and does not apply to the parent module or crate
--> sys/src/bindings.rs:25547:1
|
25547 | #[doc = "!< Conversion performed successfully"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_doc_comments
= note: `-D clippy::suspicious-doc-comments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::suspicious_doc_comments)]`
help: use an inner doc comment to document the parent module or crate
|
25547 - #[doc = "!< Conversion performed successfully"]
25547 + //!< Conversion performed successfully
|
|
Run Clippy:
crates/sys/src/lib.rs#L66
error: use of `offset` with a `usize` casted to an `isize`
--> sys/src/bindings.rs:66:13
|
66 | (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(core::ptr::addr_of_mut!((*this).storage) as *mut u8).add(byte_index)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
|
Run Clippy:
crates/sys/src/lib.rs#L40
error: use of `offset` with a `usize` casted to an `isize`
--> sys/src/bindings.rs:40:14
|
40 | *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(core::ptr::addr_of!((*this).storage) as *const u8).add(byte_index)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast
= note: `-D clippy::ptr-offset-with-cast` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::ptr_offset_with_cast)]`
|
Run Clippy
The `deny` input is deprecated in v1.4 and can be used within the `check-args` input
|
Loading