Upped minor version. #4
Annotations
32 warnings
/home/runner/work/bluefile/bluefile/src/lib.rs#L135
unreachable pattern
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L32
field `offset` is never read
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L35
fields `offset` and `adjunct` are never read
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L39
fields `offset` and `adjunct` are never read
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L121
writing `&Vec` instead of `&[_]` involves a new object where a slice will do
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L3
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L4
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L5
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L6
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L7
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L9
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L10
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L11
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L16
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L17
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L18
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L19
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L20
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L21
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L22
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L23
variant name ends with the enum's name
|
/home/runner/work/bluefile/bluefile/src/lib.rs#L21
unneeded `return` statement
|
unreachable pattern:
src/lib.rs#L135
warning: unreachable pattern
--> src/data_type.rs:135:9
|
135 | _ => Err(Error::UnknownDataTypeError),
| ^
|
= note: `#[warn(unreachable_patterns)]` on by default
|
field `offset` is never read:
src/lib.rs#L32
warning: field `offset` is never read
--> src/bluefile.rs:32:5
|
29 | pub struct ExtHeaderIter {
| ------------- field in this struct
...
32 | offset: usize,
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
fields `offset` and `adjunct` are never read:
src/lib.rs#L35
warning: fields `offset` and `adjunct` are never read
--> src/type1000.rs:35:5
|
32 | pub struct Type1000DataIter {
| ---------------- fields in this struct
...
35 | offset: usize,
| ^^^^^^
...
39 | adjunct: Type1000Adjunct,
| ^^^^^^^
|
fields `offset` and `adjunct` are never read:
src/lib.rs#L39
warning: fields `offset` and `adjunct` are never read
--> src/type2000.rs:39:5
|
36 | pub struct Type2000DataIter {
| ---------------- fields in this struct
...
39 | offset: usize,
| ^^^^^^
...
43 | adjunct: Type2000Adjunct,
| ^^^^^^^
|
writing `&Vec` instead of `&[_]` involves a new object where a slice will do:
src/lib.rs#L121
warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
--> src/data_type.rs:121:79
|
121 | pub fn bytes_to_data_value(data_type: &DataType, endianness: Endianness, buf: &Vec<u8>) -> Result<DataValue> {
| ^^^^^^^^ help: change this to: `&[u8]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: `#[warn(clippy::ptr_arg)]` on by default
|
variant name ends with the enum's name:
src/lib.rs#L3
warning: variant name ends with the enum's name
--> src/error.rs:3:5
|
3 | NotBlueFileError,
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
= note: `#[warn(clippy::enum_variant_names)]` on by default
|
variant name ends with the enum's name:
src/lib.rs#L4
warning: variant name ends with the enum's name
--> src/error.rs:4:5
|
4 | TypeCodeMismatchError,
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
|
variant name ends with the enum's name:
src/lib.rs#L5
warning: variant name ends with the enum's name
--> src/error.rs:5:5
|
5 | UnknownRankError,
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
|
variant name ends with the enum's name:
src/lib.rs#L6
warning: variant name ends with the enum's name
--> src/error.rs:6:5
|
6 | UnknownFormatError,
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
|
variant name ends with the enum's name:
src/lib.rs#L7
warning: variant name ends with the enum's name
--> src/error.rs:7:5
|
7 | UnknownDataTypeError,
| ^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
|