Skip to content
GitHub Actions / clippy failed Nov 20, 2024 in 0s

clippy

13 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 13
Warning 0
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check failure on line 302 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:302:30
    |
302 |             Value::Int(i128::max_value()),
    |                              ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
302 |             Value::Int(i128::MAX),
    |                              ~~~

Check failure on line 298 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:298:30
    |
298 |             Value::Int(i128::min_value()),
    |                              ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
298 |             Value::Int(i128::MIN),
    |                              ~~~

Check failure on line 293 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:293:29
    |
293 |             Value::Int(i64::max_value().into()),
    |                             ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
293 |             Value::Int(i64::MAX.into()),
    |                             ~~~

Check failure on line 289 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:289:29
    |
289 |             Value::Int(i64::min_value().into()),
    |                             ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
289 |             Value::Int(i64::MIN.into()),
    |                             ~~~

Check failure on line 285 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:285:66
    |
285 |         transcode_roundtrip::<i32>("2147483647", Value::Int(i32::max_value().into()))?;
    |                                                                  ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
285 |         transcode_roundtrip::<i32>("2147483647", Value::Int(i32::MAX.into()))?;
    |                                                                  ~~~

Check failure on line 284 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:284:67
    |
284 |         transcode_roundtrip::<i32>("-2147483648", Value::Int(i32::min_value().into()))?;
    |                                                                   ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
284 |         transcode_roundtrip::<i32>("-2147483648", Value::Int(i32::MIN.into()))?;
    |                                                                   ~~~

Check failure on line 282 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:282:61
    |
282 |         transcode_roundtrip::<i16>("32767", Value::Int(i16::max_value().into()))?;
    |                                                             ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
282 |         transcode_roundtrip::<i16>("32767", Value::Int(i16::MAX.into()))?;
    |                                                             ~~~

Check failure on line 281 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:281:62
    |
281 |         transcode_roundtrip::<i16>("-32768", Value::Int(i16::min_value().into()))?;
    |                                                              ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
281 |         transcode_roundtrip::<i16>("-32768", Value::Int(i16::MIN.into()))?;
    |                                                              ~~~

Check failure on line 279 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:279:57
    |
279 |         transcode_roundtrip::<i8>("127", Value::Int(i8::max_value().into()))?;
    |                                                         ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
help: use the associated constant instead
    |
279 |         transcode_roundtrip::<i8>("127", Value::Int(i8::MAX.into()))?;
    |                                                         ~~~

Check failure on line 278 in crates/transcode/src/transcoder.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

usage of a legacy numeric method

error: usage of a legacy numeric method
   --> crates/transcode/src/transcoder.rs:278:58
    |
278 |         transcode_roundtrip::<i8>("-128", Value::Int(i8::min_value().into()))?;
    |                                                          ^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants
    = note: `-D clippy::legacy-numeric-constants` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::legacy_numeric_constants)]`
help: use the associated constant instead
    |
278 |         transcode_roundtrip::<i8>("-128", Value::Int(i8::MIN.into()))?;
    |                                                          ~~~

Check failure on line 539 in crates/transcode/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition value: `__ink_dylint_Constructor`

error: unexpected `cfg` condition value: `__ink_dylint_Constructor`
   --> crates/transcode/src/lib.rs:539:13
    |
539 |             pub fn default() -> Self {
    |             ^^^
    |
    = note: expected values for `feature` are: `default` and `std`
    = help: consider adding `__ink_dylint_Constructor` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check failure on line 534 in crates/transcode/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition value: `__ink_dylint_Constructor`

error: unexpected `cfg` condition value: `__ink_dylint_Constructor`
   --> crates/transcode/src/lib.rs:534:13
    |
534 |             pub fn new(init_value: bool) -> Self {
    |             ^^^
    |
    = note: expected values for `feature` are: `default` and `std`
    = help: consider adding `__ink_dylint_Constructor` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration

Check failure on line 520 in crates/transcode/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unexpected `cfg` condition value: `__ink_dylint_Storage`

error: unexpected `cfg` condition value: `__ink_dylint_Storage`
   --> crates/transcode/src/lib.rs:520:9
    |
520 |         pub struct Transcode {
    |         ^^^
    |
    = note: expected values for `feature` are: `default` and `std`
    = help: consider adding `__ink_dylint_Storage` as a feature in `Cargo.toml`
    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
    = note: `-D unexpected-cfgs` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`