Skip to content

ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType #137

ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType

ISSUE: 42 and 30, implement headers to catalog v1 and get MimeType #137

Triggered via pull request October 12, 2023 07:52
Status Failure
Total duration 2m 18s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
lint: src/header.rs#L10
error: unused import: `le_u32` --> src/header.rs:10:24 | 10 | number::complete::{le_u32, le_u8}, // if cbor length is actually u32 | ^^^^^^ | = note: `-D unused-imports` implied by `-D warnings`
lint: src/backend/fs.rs#L189
error: unused variable: `cat_header_bytes` --> src/backend/fs.rs:189:21 | 189 | let cat_header_bytes = cat_header.try_to_vec()?; | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cat_header_bytes` | = note: `-D unused-variables` implied by `-D warnings`
lint: src/header.rs#L30
error: variable does not need to be mutable --> src/header.rs:30:13 | 30 | let mut cat_magic_no = [0_u8; 16]; | ----^^^^^^^^^^^^ | | | help: remove this `mut` | = note: `-D unused-mut` implied by `-D warnings`
lint: src/header.rs#L51
error: variable does not need to be mutable --> src/header.rs:51:13 | 51 | let mut cat_magic_no = [0_u8; 16]; | ----^^^^^^^^^^^^ | | | help: remove this `mut`
lint: src/header.rs#L84
error: useless conversion to the same type: `u8` --> src/header.rs:84:23 | 84 | cbor_len: cbor_len.into(), | ^^^^^^^^^^^^^^^ help: consider removing `.into()`: `cbor_len` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion = note: `-D clippy::useless-conversion` implied by `-D warnings`
lint
Process completed with exit code 1.