Skip to content

feat: add parsing for textures. #162

feat: add parsing for textures.

feat: add parsing for textures. #162

Triggered via push January 26, 2024 15:45
Status Success
Total duration 2m 21s
Artifacts

test.yml

on: push
ubuntu / nightly / direct-minimal-versions
39s
ubuntu / nightly / direct-minimal-versions
Matrix: os-check
Matrix: required
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
needlessly taken reference of left operand: engine/src/asset/texture/dat/size.rs#L13
warning: needlessly taken reference of left operand --> engine/src/asset/texture/dat/size.rs:13:9 | 13 | &self / rhs | -----^^^^^^ | | | help: use the left value directly: `self` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref = note: `#[warn(clippy::op_ref)]` on by default
docs for function returning `Result` missing `# Errors` section: engine/src/asset/pack_file.rs#L26
warning: docs for function returning `Result` missing `# Errors` section --> engine/src/asset/pack_file.rs:26:5 | 26 | pub fn new(input: &[u8]) -> Result<Self> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc = note: `#[warn(clippy::missing_errors_doc)]` implied by `#[warn(clippy::pedantic)]`
docs for function which may panic missing `# Panics` section: engine/src/asset/color_map.rs#L17
warning: docs for function which may panic missing `# Panics` section --> engine/src/asset/color_map.rs:17:5 | 17 | pub fn from_12_bit(color: u16) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> engine/src/asset/color_map.rs:19:9 | 19 | assert!(color <= 0xFFF, "12 bit color is smaller than 0xFFF"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc note: the lint level is defined here --> engine/src/lib.rs:1:9 | 1 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`