Skip to content

Feat/color map

Feat/color map #37

Triggered via pull request November 20, 2023 05:16
Status Success
Total duration 31s
Artifacts

check.yml

on: pull_request
nightly / fmt
13s
nightly / fmt
nightly / doc
19s
nightly / doc
ubuntu / nightly / features
22s
ubuntu / nightly / features
Matrix: clippy
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
usage of wildcard import: ashen/src/packfile/mod.rs#L3
warning: usage of wildcard import --> ashen/src/packfile/mod.rs:3:5 | 3 | use engine::utils::nom::*; | ^^^^^^^^^^^^^^^^^^^^^ help: try: `engine::utils::nom::{Result, bytes, multi, number}` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports = note: `-W clippy::wildcard-imports` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::wildcard_imports)]`
casting `u32` to `u8` may truncate the value: engine/src/asset/color_map.rs#L30
warning: casting `u32` to `u8` may truncate the value --> engine/src/asset/color_map.rs:30:13 | 30 | let b = (b | b << 4) as u8; | ^^^^^^^^^^^^^^^^^^ | = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation help: ... or use `try_from` and handle the error accordingly | 30 | let b = u8::try_from(b | b << 4); | ~~~~~~~~~~~~~~~~~~~~~~~~
casting `u32` to `u8` may truncate the value: engine/src/asset/color_map.rs#L29
warning: casting `u32` to `u8` may truncate the value --> engine/src/asset/color_map.rs:29:13 | 29 | let g = (g | g << 4) as u8; | ^^^^^^^^^^^^^^^^^^ | = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation help: ... or use `try_from` and handle the error accordingly | 29 | let g = u8::try_from(g | g << 4); | ~~~~~~~~~~~~~~~~~~~~~~~~
casting `u32` to `u8` may truncate the value: engine/src/asset/color_map.rs#L28
warning: casting `u32` to `u8` may truncate the value --> engine/src/asset/color_map.rs:28:13 | 28 | let r = (r | r << 4) as u8; | ^^^^^^^^^^^^^^^^^^ | = help: if this is intentional allow the lint with `#[allow(clippy::cast_possible_truncation)]` ... = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_possible_truncation = note: `-W clippy::cast-possible-truncation` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::cast_possible_truncation)]` help: ... or use `try_from` and handle the error accordingly | 28 | let r = u8::try_from(r | r << 4); | ~~~~~~~~~~~~~~~~~~~~~~~~
usage of wildcard import: engine/src/asset/color_map.rs#L2
warning: usage of wildcard import --> engine/src/asset/color_map.rs:2:5 | 2 | use crate::utils::nom::*; | ^^^^^^^^^^^^^^^^^^^^ help: try: `crate::utils::nom::{Result, multi, number}` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wildcard_imports = note: `-W clippy::wildcard-imports` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::wildcard_imports)]`
nightly / clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/