Implemented Display for DataValue and added an example for reading Ty… #7
Annotations
10 warnings
src/lib.rs#L156
warning: unreachable pattern
--> src/data_type.rs:156:9
|
156 | _ => Err(Error::UnknownDataTypeError),
| ^
|
= note: `#[warn(unreachable_patterns)]` on by default
|
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
|
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,
| ^^^^^^^
|
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,
| ^^^^^^^
|
src/lib.rs#L142
warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
--> src/data_type.rs:142:79
|
142 | 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
|
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
|
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
|
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
|
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
|
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
|
The logs for this run have expired and are no longer available.
Loading