Files
BlueArchiveToolkit/docs/reports/historical/build-logs/clippy-analysis.txt
T

95 lines
4.2 KiB
Plaintext

Checking sqlx-sqlite v0.8.6
Checking bat-core v0.1.0 (/home/wanye/D/workspace/BlueArchiveToolkit/core)
Checking bat-assetbundle v0.1.0 (/home/wanye/D/workspace/BlueArchiveToolkit/crates/bat-assetbundle)
Checking bat-patch v0.1.0 (/home/wanye/D/workspace/BlueArchiveToolkit/crates/bat-patch)
Checking bat-adapters v0.1.0 (/home/wanye/D/workspace/BlueArchiveToolkit/adapters)
warning: octal-looking escape in a literal
--> adapters/src/unity/unity_2021_3.rs:123:39
|
123 | data.extend_from_slice(b"5.x.x\02021.3.56f2\0");
| ^^^^
|
= help: octal escapes are not supported, `\0` is always null
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#octal_escapes
note: the lint level is defined here
--> adapters/src/lib.rs:11:9
|
11 | #![warn(clippy::all)]
| ^^^^^^^^^^^
= note: `#[warn(clippy::octal_escapes)]` implied by `#[warn(clippy::all)]`
help: if an octal escape is intended, use a hex escape instead
|
123 - data.extend_from_slice(b"5.x.x\02021.3.56f2\0");
123 + data.extend_from_slice(b"5.x.x\x1021.3.56f2\0");
|
help: if a null escape is intended, disambiguate using
|
123 | data.extend_from_slice(b"5.x.x\x002021.3.56f2\0");
| ++
warning: octal-looking escape in a literal
--> adapters/src/unity/registry.rs:90:39
|
90 | data.extend_from_slice(b"5.x.x\02021.3.56f2\0");
| ^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#octal_escapes
help: if an octal escape is intended, use a hex escape instead
|
90 - data.extend_from_slice(b"5.x.x\02021.3.56f2\0");
90 + data.extend_from_slice(b"5.x.x\x1021.3.56f2\0");
|
help: if a null escape is intended, disambiguate using
|
90 | data.extend_from_slice(b"5.x.x\x002021.3.56f2\0");
| ++
warning: `bat-adapters` (lib test) generated 2 warnings
Checking sqlx v0.8.6
Checking bat-cas-engine v0.1.0 (/home/wanye/D/workspace/BlueArchiveToolkit/crates/bat-cas-engine)
Checking bat-infrastructure v0.1.0 (/home/wanye/D/workspace/BlueArchiveToolkit/infrastructure)
Checking bat-ffi v0.1.0 (/home/wanye/D/workspace/BlueArchiveToolkit/crates/bat-ffi)
warning: this can be `std::io::Error::other(_)`
--> infrastructure/src/resource/sqlite.rs:54:42
|
54 | .map_err(|e| bat_core::Error::Io(std::io::Error::new(
| __________________________________________^
55 | | std::io::ErrorKind::Other,
56 | | format!("Failed to create table: {}", e)
57 | | )))?;
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#io_other_error
note: the lint level is defined here
--> infrastructure/src/lib.rs:10:9
|
10 | #![warn(clippy::all)]
| ^^^^^^^^^^^
= note: `#[warn(clippy::io_other_error)]` implied by `#[warn(clippy::all)]`
help: use `std::io::Error::other`
|
54 ~ .map_err(|e| bat_core::Error::Io(std::io::Error::other(
55 ~ format!("Failed to create table: {}", e)
|
warning: this can be `std::io::Error::other(_)`
--> infrastructure/src/resource/sqlite.rs:63:46
|
63 | .map_err(|e| bat_core::Error::Io(std::io::Error::new(
| ______________________________________________^
64 | | std::io::ErrorKind::Other,
65 | | format!("Failed to create index: {}", e)
66 | | )))?;
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#io_other_error
help: use `std::io::Error::other`
|
63 ~ .map_err(|e| bat_core::Error::Io(std::io::Error::other(
64 ~ format!("Failed to create index: {}", e)
|
warning: `bat-infrastructure` (lib) generated 2 warnings (run `cargo clippy --fix --lib -p bat-infrastructure -- ` to apply 2 suggestions)
warning: `bat-infrastructure` (lib test) generated 2 warnings (2 duplicates)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.30s