Skip to content

fix: generate auto derive attributes correctly (#240) #622

fix: generate auto derive attributes correctly (#240)

fix: generate auto derive attributes correctly (#240) #622

Triggered via push April 22, 2024 11:50
Status Success
Total duration 20s
Artifacts

security.yaml

on: push
security-audit
8s
security-audit
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
security-audit
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/audit-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
security-audit
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/audit-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/
assigning the result of `Clone::clone()` may be inefficient: pilota-build/src/middle/context.rs#L176
warning: assigning the result of `Clone::clone()` may be inefficient --> pilota-build/src/middle/context.rs:176:13 | 176 | self.location_map = location_map.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.location_map.clone_from(&location_map)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default
struct `ExceptionVariant` is never constructed: pilota-build/src/ir/mod.rs#L60
warning: struct `ExceptionVariant` is never constructed --> pilota-build/src/ir/mod.rs:60:12 | 60 | pub struct ExceptionVariant { | ^^^^^^^^^^^^^^^^ | = note: `ExceptionVariant` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
method `increment_by` is never used: pilota-build/src/index.rs#L14
warning: method `increment_by` is never used --> pilota-build/src/index.rs:14:8 | 3 | pub trait Idx: Sized + Copy + 'static { | --- method in this trait ... 14 | fn increment_by(&mut self, amount: usize) { | ^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
usage of a legacy numeric method: pilota/src/prost/mod.rs#L67
warning: usage of a legacy numeric method --> pilota/src/prost/mod.rs:67:24 | 67 | if length > usize::max_value() as u64 { | ^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants help: use the associated constant instead | 67 | if length > usize::MAX as u64 { | ~~~
importing legacy numeric constants: pilota/src/prost/encoding.rs#L9
warning: importing legacy numeric constants --> pilota/src/prost/encoding.rs:9:55 | 9 | use core::{cmp::min, convert::TryFrom, mem, str, u32, usize}; | ^^^^^ | = help: remove this import = note: then `usize::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
importing legacy numeric constants: pilota/src/prost/encoding.rs#L9
warning: importing legacy numeric constants --> pilota/src/prost/encoding.rs:9:50 | 9 | use core::{cmp::min, convert::TryFrom, mem, str, u32, usize}; | ^^^ | = help: remove this import = note: then `u32::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
importing legacy numeric constants: pilota/src/prost/message.rs#L4
warning: importing legacy numeric constants --> pilota/src/prost/message.rs:4:24 | 4 | use core::{fmt::Debug, usize}; | ^^^^^ | = help: remove this import = note: then `usize::<CONST>` will resolve to the respective associated constant = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `#[warn(clippy::legacy_numeric_constants)]` on by default