build.rs: fix println #853
clippy xen
11 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 11 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.76.0 (07dca489a 2024-02-04)
- cargo 1.76.0 (c84b36747 2024-01-18)
- clippy 0.1.76 (07dca48 2024-02-04)
Annotations
Check failure on line 381 in src/driver/xen.rs
github-actions / clippy xen
use of a fallible conversion when an infallible one could be used
error: use of a fallible conversion when an infallible one could be used
--> src/driver/xen.rs:381:22
|
381 | .try_into()
| ^^^^^^^^ help: use: `into`
|
= note: converting `u16` to `u32` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
Check failure on line 376 in src/driver/xen.rs
github-actions / clippy xen
use of a fallible conversion when an infallible one could be used
error: use of a fallible conversion when an infallible one could be used
--> src/driver/xen.rs:376:22
|
376 | .try_into()
| ^^^^^^^^ help: use: `into`
|
= note: converting `u16` to `u32` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
Check failure on line 371 in src/driver/xen.rs
github-actions / clippy xen
use of a fallible conversion when an infallible one could be used
error: use of a fallible conversion when an infallible one could be used
--> src/driver/xen.rs:371:22
|
371 | .try_into()
| ^^^^^^^^ help: use: `into`
|
= note: converting `u16` to `u32` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
Check failure on line 366 in src/driver/xen.rs
github-actions / clippy xen
use of a fallible conversion when an infallible one could be used
error: use of a fallible conversion when an infallible one could be used
--> src/driver/xen.rs:366:22
|
366 | .try_into()
| ^^^^^^^^ help: use: `into`
|
= note: converting `u16` to `u32` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
Check failure on line 361 in src/driver/xen.rs
github-actions / clippy xen
use of a fallible conversion when an infallible one could be used
error: use of a fallible conversion when an infallible one could be used
--> src/driver/xen.rs:361:22
|
361 | .try_into()
| ^^^^^^^^ help: use: `into`
|
= note: converting `u16` to `u32` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
Check failure on line 356 in src/driver/xen.rs
github-actions / clippy xen
use of a fallible conversion when an infallible one could be used
error: use of a fallible conversion when an infallible one could be used
--> src/driver/xen.rs:356:22
|
356 | .try_into()
| ^^^^^^^^ help: use: `into`
|
= note: converting `u16` to `u32` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
Check failure on line 351 in src/driver/xen.rs
github-actions / clippy xen
use of a fallible conversion when an infallible one could be used
error: use of a fallible conversion when an infallible one could be used
--> src/driver/xen.rs:351:22
|
351 | .try_into()
| ^^^^^^^^ help: use: `into`
|
= note: converting `u16` to `u32` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
= note: `-D clippy::unnecessary-fallible-conversions` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_fallible_conversions)]`
Check failure on line 188 in src/driver/xen.rs
github-actions / clippy xen
casting to the same type is unnecessary (`u64` -> `u64`)
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/driver/xen.rs:188:17
|
188 | count_mut as u64
| ^^^^^^^^^^^^^^^^ help: try: `count_mut`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
Check failure on line 185 in src/driver/xen.rs
github-actions / clippy xen
casting to the same type is unnecessary (`u64` -> `u64`)
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/driver/xen.rs:185:42
|
185 | let write_len = if (offset + count_mut as u64) > u64::from(PAGE_SIZE) {
| ^^^^^^^^^^^^^^^^ help: try: `count_mut`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
Check failure on line 145 in src/driver/xen.rs
github-actions / clippy xen
casting to the same type is unnecessary (`u64` -> `u64`)
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/driver/xen.rs:145:46
|
145 | let read_len = if (page_offset + count_mut as u64) > u64::from(PAGE_SIZE) {
| ^^^^^^^^^^^^^^^^ help: try: `count_mut`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
Check failure on line 33 in src/driver/xen.rs
github-actions / clippy xen
field `dom_name` is never read
error: field `dom_name` is never read
--> src/driver/xen.rs:33:5
|
29 | pub struct Xen {
| --- field in this struct
...
33 | dom_name: String,
| ^^^^^^^^
|
= note: `Xen` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`