Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

feat: create stable packages output #16

feat: create stable packages output

feat: create stable packages output #16

GitHub Actions / clippy failed Nov 30, 2023 in 0s

clippy

3 errors

Details

Results

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

Versions

  • rustc 1.74.0 (79e9716c9 2023-11-13)
  • cargo 1.74.0 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (79e9716 2023-11-13)

Annotations

Check failure on line 793 in stacks-common/./src/deps_common/httparse/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this loop never actually loops

error: this loop never actually loops
   --> stacks-common/./src/deps_common/httparse/mod.rs:748:13
    |
748 | /             'value: loop {
749 | |                 // eat white space between colon and value
750 | |                 'whitespace: loop {
751 | |                     b = next!(bytes);
...   |
792 | |                 }
793 | |             }
    | |_____________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
    = note: `#[deny(clippy::never_loop)]` on by default

Check failure on line 547 in stacks-common/./src/util/hash.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

call to `reserve` immediately after creation

error: call to `reserve` immediately after creation
   --> stacks-common/./src/util/hash.rs:546:9
    |
546 | /         let mut path: MerklePath<H> = vec![];
547 | |         path.reserve(self.nodes.len());
    | |_______________________________________^ help: consider using `Vec::with_capacity(/* Space hint */)`: `let mut path: MerklePath<H> = Vec::with_capacity(self.nodes.len());`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#reserve_after_initialization

Check failure on line 423 in stacks-common/./src/util/hash.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

call to `reserve` immediately after creation

error: call to `reserve` immediately after creation
   --> stacks-common/./src/util/hash.rs:422:13
    |
422 | /             let mut row_hashes = vec![];
423 | |             row_hashes.reserve(nodes[i].len() / 2);
    | |___________________________________________________^ help: consider using `Vec::with_capacity(/* Space hint */)`: `let mut row_hashes = Vec::with_capacity(nodes[i].len() / 2);`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#reserve_after_initialization
    = note: `-D clippy::reserve-after-initialization` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::reserve_after_initialization)]`