Skip to content

feat: implement dry-run mode for signer #319

feat: implement dry-run mode for signer

feat: implement dry-run mode for signer #319

GitHub Actions / clippy failed Jan 10, 2025 in 0s

clippy

12 errors

Details

Results

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

Versions

  • rustc 1.84.0 (9fc6b4312 2025-01-07)
  • cargo 1.84.0 (66221abde 2024-11-19)
  • clippy 0.1.84 (9fc6b43126 2025-01-07)

Annotations

Check failure on line 136 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
   --> clarity/src/vm/representations.rs:136:26
    |
136 |         write_next(fd, &(self.as_bytes().len() as u8))?;
    |                          ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 133 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
   --> clarity/src/vm/representations.rs:133:17
    |
133 |                 self.as_bytes().len()
    |                 ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 129 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
   --> clarity/src/vm/representations.rs:129:16
    |
129 |             || self.as_bytes().len() > CONTRACT_MAX_NAME_LENGTH
    |                ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 128 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
   --> clarity/src/vm/representations.rs:128:12
    |
128 |         if self.as_bytes().len() < CONTRACT_MIN_NAME_LENGTH
    |            ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 95 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
  --> clarity/src/vm/representations.rs:95:26
   |
95 |         write_next(fd, &(self.as_bytes().len() as u8))?;
   |                          ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 90 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
  --> clarity/src/vm/representations.rs:90:12
   |
90 |         if self.as_bytes().len() > MAX_STRING_LEN as usize {
   |            ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes
   = note: `-D clippy::needless-as-bytes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_as_bytes)]`

Check failure on line 136 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
   --> clarity/src/vm/representations.rs:136:26
    |
136 |         write_next(fd, &(self.as_bytes().len() as u8))?;
    |                          ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 133 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
   --> clarity/src/vm/representations.rs:133:17
    |
133 |                 self.as_bytes().len()
    |                 ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 129 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
   --> clarity/src/vm/representations.rs:129:16
    |
129 |             || self.as_bytes().len() > CONTRACT_MAX_NAME_LENGTH
    |                ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 128 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
   --> clarity/src/vm/representations.rs:128:12
    |
128 |         if self.as_bytes().len() < CONTRACT_MIN_NAME_LENGTH
    |            ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 95 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
  --> clarity/src/vm/representations.rs:95:26
   |
95 |         write_next(fd, &(self.as_bytes().len() as u8))?;
   |                          ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes

Check failure on line 90 in clarity/src/vm/representations.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

needless call to `as_bytes()`

error: needless call to `as_bytes()`
  --> clarity/src/vm/representations.rs:90:12
   |
90 |         if self.as_bytes().len() > MAX_STRING_LEN as usize {
   |            ^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `self.len()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes
   = note: `-D clippy::needless-as-bytes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_as_bytes)]`