Skip to content

Feature: ManagedDecimal #82

Feature: ManagedDecimal

Feature: ManagedDecimal #82

GitHub Actions / clippy failed May 30, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (2)

contracts/feature-tests/abi-tester/src/abi_test_type.rs|47 col 12| warning: field field is never read
--> contracts/feature-tests/abi-tester/src/abi_test_type.rs:48:9
|
47 | pub struct ManagedDecimalWrapper<M: ManagedTypeApi> {
| --------------------- field in this struct
48 | pub field: ManagedDecimal<M, ConstDecimals<2>>,
| ^^^^^
|
= note: #[warn(dead_code)] on by default
contracts/feature-tests/abi-tester/src/abi_test_type.rs|47 col 12| warning: field field is never read
--> contracts/feature-tests/abi-tester/src/abi_test_type.rs:48:9
|
47 | pub struct ManagedDecimalWrapper<M: ManagedTypeApi> {
| --------------------- field in this struct
48 | pub field: ManagedDecimal<M, ConstDecimals<2>>,
| ^^^^^
|
= note: #[warn(dead_code)] on by default

Filtered Findings (2)

framework/base/src/storage/mappers/vec_mapper.rs|15 col 33| warning: importing legacy numeric constants
--> framework/base/src/storage/mappers/vec_mapper.rs:15:33
|
15 | use core::{marker::PhantomData, 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
framework/base/src/storage/mappers/vec_mapper.rs|15 col 33| warning: importing legacy numeric constants
--> framework/base/src/storage/mappers/vec_mapper.rs:15:33
|
15 | use core::{marker::PhantomData, 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

Annotations

Check warning on line 47 in contracts/feature-tests/abi-tester/src/abi_test_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/feature-tests/abi-tester/src/abi_test_type.rs#L47

warning: field `field` is never read
  --> contracts/feature-tests/abi-tester/src/abi_test_type.rs:48:9
   |
47 | pub struct ManagedDecimalWrapper<M: ManagedTypeApi> {
   |            --------------------- field in this struct
48 |     pub field: ManagedDecimal<M, ConstDecimals<2>>,
   |         ^^^^^
   |
   = note: `#[warn(dead_code)]` on by default
Raw output
contracts/feature-tests/abi-tester/src/abi_test_type.rs:47:12:w:warning: field `field` is never read
  --> contracts/feature-tests/abi-tester/src/abi_test_type.rs:48:9
   |
47 | pub struct ManagedDecimalWrapper<M: ManagedTypeApi> {
   |            --------------------- field in this struct
48 |     pub field: ManagedDecimal<M, ConstDecimals<2>>,
   |         ^^^^^
   |
   = note: `#[warn(dead_code)]` on by default


__END__

Check warning on line 47 in contracts/feature-tests/abi-tester/src/abi_test_type.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] contracts/feature-tests/abi-tester/src/abi_test_type.rs#L47

warning: field `field` is never read
  --> contracts/feature-tests/abi-tester/src/abi_test_type.rs:48:9
   |
47 | pub struct ManagedDecimalWrapper<M: ManagedTypeApi> {
   |            --------------------- field in this struct
48 |     pub field: ManagedDecimal<M, ConstDecimals<2>>,
   |         ^^^^^
   |
   = note: `#[warn(dead_code)]` on by default
Raw output
contracts/feature-tests/abi-tester/src/abi_test_type.rs:47:12:w:warning: field `field` is never read
  --> contracts/feature-tests/abi-tester/src/abi_test_type.rs:48:9
   |
47 | pub struct ManagedDecimalWrapper<M: ManagedTypeApi> {
   |            --------------------- field in this struct
48 |     pub field: ManagedDecimal<M, ConstDecimals<2>>,
   |         ^^^^^
   |
   = note: `#[warn(dead_code)]` on by default


__END__