start doing serde impls for checksums #2413
Annotations
1 error and 25 warnings
|
clippy_check
Clippy had exited with the 101 exit code
|
|
unused variable: `variant`:
azalea-core/src/checksum.rs#L235
warning: unused variable: `variant`
--> azalea-core/src/checksum.rs:235:9
|
235 | variant: &'static str,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant`
|
|
unused variable: `variant_index`:
azalea-core/src/checksum.rs#L234
warning: unused variable: `variant_index`
--> azalea-core/src/checksum.rs:234:9
|
234 | variant_index: u32,
| ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant_index`
|
|
unused variable: `name`:
azalea-core/src/checksum.rs#L233
warning: unused variable: `name`
--> azalea-core/src/checksum.rs:233:9
|
233 | name: &'static str,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
|
unused variable: `len`:
azalea-core/src/checksum.rs#L226
warning: unused variable: `len`
--> azalea-core/src/checksum.rs:226:9
|
226 | len: usize,
| ^^^ help: if this is intentional, prefix it with an underscore: `_len`
|
|
unused variable: `variant`:
azalea-core/src/checksum.rs#L225
warning: unused variable: `variant`
--> azalea-core/src/checksum.rs:225:9
|
225 | variant: &'static str,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant`
|
|
unused variable: `variant_index`:
azalea-core/src/checksum.rs#L224
warning: unused variable: `variant_index`
--> azalea-core/src/checksum.rs:224:9
|
224 | variant_index: u32,
| ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant_index`
|
|
unused variable: `name`:
azalea-core/src/checksum.rs#L223
warning: unused variable: `name`
--> azalea-core/src/checksum.rs:223:9
|
223 | name: &'static str,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
|
unused variable: `len`:
azalea-core/src/checksum.rs#L216
warning: unused variable: `len`
--> azalea-core/src/checksum.rs:216:9
|
216 | len: usize,
| ^^^ help: if this is intentional, prefix it with an underscore: `_len`
|
|
unused variable: `name`:
azalea-core/src/checksum.rs#L215
warning: unused variable: `name`
--> azalea-core/src/checksum.rs:215:9
|
215 | name: &'static str,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
|
unused variable: `value`:
azalea-core/src/checksum.rs#L160
warning: unused variable: `value`
--> azalea-core/src/checksum.rs:160:62
|
160 | fn serialize_newtype_struct<T>(self, name: &'static str, value: &T) -> Result<()>
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
|
|
unused variable: `name`:
azalea-core/src/checksum.rs#L160
warning: unused variable: `name`
--> azalea-core/src/checksum.rs:160:42
|
160 | fn serialize_newtype_struct<T>(self, name: &'static str, value: &T) -> Result<()>
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
|
unused variable: `variant_index`:
azalea-core/src/checksum.rs#L154
warning: unused variable: `variant_index`
--> azalea-core/src/checksum.rs:154:9
|
154 | variant_index: u32,
| ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_variant_index`
|
|
unused variable: `name`:
azalea-core/src/checksum.rs#L153
warning: unused variable: `name`
--> azalea-core/src/checksum.rs:153:9
|
153 | name: &'static str,
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
= note: `#[warn(unused_variables)]` on by default
|
|
unexpected `cfg` condition value: `serde`:
azalea-core/src/resource_location.rs#L90
warning: unexpected `cfg` condition value: `serde`
--> azalea-core/src/resource_location.rs:90:7
|
90 | #[cfg(feature = "serde")]
| ^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `bevy_ecs` and `strict_registry`
= help: consider adding `serde` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
|
unexpected `cfg` condition value: `serde`:
azalea-core/src/resource_location.rs#L80
warning: unexpected `cfg` condition value: `serde`
--> azalea-core/src/resource_location.rs:80:7
|
80 | #[cfg(feature = "serde")]
| ^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `bevy_ecs` and `strict_registry`
= help: consider adding `serde` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
|
unexpected `cfg` condition value: `serde`:
azalea-core/src/resource_location.rs#L10
warning: unexpected `cfg` condition value: `serde`
--> azalea-core/src/resource_location.rs:10:7
|
10 | #[cfg(feature = "serde")]
| ^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `bevy_ecs` and `strict_registry`
= help: consider adding `serde` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
|
unexpected `cfg` condition value: `serde`:
azalea-core/src/position.rs#L823
warning: unexpected `cfg` condition value: `serde`
--> azalea-core/src/position.rs:823:12
|
823 | #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
| ^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `bevy_ecs` and `strict_registry`
= help: consider adding `serde` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
|
unexpected `cfg` condition value: `serde`:
azalea-core/src/direction.rs#L94
warning: unexpected `cfg` condition value: `serde`
--> azalea-core/src/direction.rs:94:12
|
94 | #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
| ^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `bevy_ecs` and `strict_registry`
= help: consider adding `serde` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
|
unexpected `cfg` condition value: `serde`:
azalea-core/src/direction.rs#L6
warning: unexpected `cfg` condition value: `serde`
--> azalea-core/src/direction.rs:6:12
|
6 | #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
| ^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `bevy_ecs` and `strict_registry`
= help: consider adding `serde` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
|
|
unused imports: `NbtCompound`, `NbtList`, and `NbtTag`:
azalea-core/src/checksum.rs#L5
warning: unused imports: `NbtCompound`, `NbtList`, and `NbtTag`
--> azalea-core/src/checksum.rs:5:22
|
5 | use simdnbt::owned::{NbtCompound, NbtList, NbtTag};
| ^^^^^^^^^^^ ^^^^^^^ ^^^^^^
|
|
unused import: `any::Any`:
azalea-core/src/checksum.rs#L1
warning: unused import: `any::Any`
--> azalea-core/src/checksum.rs:1:11
|
1 | use std::{any::Any, cmp::Ordering, fmt, hash::Hasher};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|