Skip to content

add block hash columns where possible #352

add block hash columns where possible

add block hash columns where possible #352

GitHub Actions / clippy succeeded Dec 3, 2023 in 0s

clippy

3 warnings

Details

Results

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

Versions

  • rustc 1.76.0-nightly (90e321d82 2023-12-02)
  • cargo 1.76.0-nightly (26333c732 2023-11-28)
  • clippy 0.1.76 (90e321d 2023-12-02)

Annotations

Check warning on line 174 in crates/cli/src/parse/schemas.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do

warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
   --> crates/cli/src/parse/schemas.rs:174:16
    |
174 |     datatypes: &Vec<Datatype>,
    |                ^^^^^^^^^^^^^^ help: change this to: `&[Datatype]`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
    = note: `#[warn(clippy::ptr_arg)]` on by default

Check warning on line 174 in crates/cli/src/parse/schemas.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do

warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
   --> crates/cli/src/parse/schemas.rs:174:16
    |
174 |     datatypes: &Vec<Datatype>,
    |                ^^^^^^^^^^^^^^ help: change this to: `&[Datatype]`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
    = note: `#[warn(clippy::ptr_arg)]` on by default

Check warning on line 45 in crates/freeze/src/types/chunks/subchunks.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do

warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
  --> crates/freeze/src/types/chunks/subchunks.rs:45:28
   |
45 | fn to_single_chunk(chunks: &Vec<BlockChunk>) -> BlockChunk {
   |                            ^^^^^^^^^^^^^^^^ help: change this to: `&[BlockChunk]`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
   = note: `#[warn(clippy::ptr_arg)]` on by default