Skip to content

add BlockState::property

Sign in for the full log view
GitHub Actions / clippy succeeded Dec 10, 2023 in 0s

clippy

6 warnings

Details

Results

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

Versions

  • rustc 1.76.0-nightly (06e02d5b2 2023-12-09)
  • cargo 1.76.0-nightly (978722961 2023-12-06)
  • clippy 0.1.76 (06e02d5 2023-12-09)

Annotations

Check warning on line 548 in azalea-block/azalea-block-macros/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this creates an owned instance just for comparison

warning: this creates an owned instance just for comparison
   --> azalea-block/azalea-block-macros/src/lib.rs:548:54
    |
548 |                     .find(|v| v.ident.to_string() == variant.to_string());
    |                               -----------------------^^^^^^^^^^^^^^^^^^^
    |                               |
    |                               help: try: `variant == v.ident.to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned

Check warning on line 548 in azalea-block/azalea-block-macros/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this creates an owned instance just for comparison

warning: this creates an owned instance just for comparison
   --> azalea-block/azalea-block-macros/src/lib.rs:548:31
    |
548 |                     .find(|v| v.ident.to_string() == variant.to_string());
    |                               ^^^^^^^^^^^^^^^^^^^ help: try: `v.ident`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned
    = note: `#[warn(clippy::cmp_owned)]` on by default

Check warning on line 545 in azalea-block/azalea-block-macros/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `or_insert_with` to construct default value

warning: use of `or_insert_with` to construct default value
   --> azalea-block/azalea-block-macros/src/lib.rs:545:22
    |
545 |                     .or_insert_with(Vec::new);
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
    = note: `#[warn(clippy::unwrap_or_default)]` on by default

Check warning on line 548 in azalea-block/azalea-block-macros/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this creates an owned instance just for comparison

warning: this creates an owned instance just for comparison
   --> azalea-block/azalea-block-macros/src/lib.rs:548:54
    |
548 |                     .find(|v| v.ident.to_string() == variant.to_string());
    |                               -----------------------^^^^^^^^^^^^^^^^^^^
    |                               |
    |                               help: try: `variant == v.ident.to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned

Check warning on line 548 in azalea-block/azalea-block-macros/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this creates an owned instance just for comparison

warning: this creates an owned instance just for comparison
   --> azalea-block/azalea-block-macros/src/lib.rs:548:31
    |
548 |                     .find(|v| v.ident.to_string() == variant.to_string());
    |                               ^^^^^^^^^^^^^^^^^^^ help: try: `v.ident`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned
    = note: `#[warn(clippy::cmp_owned)]` on by default

Check warning on line 545 in azalea-block/azalea-block-macros/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of `or_insert_with` to construct default value

warning: use of `or_insert_with` to construct default value
   --> azalea-block/azalea-block-macros/src/lib.rs:545:22
    |
545 |                     .or_insert_with(Vec::new);
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `or_default()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unwrap_or_default
    = note: `#[warn(clippy::unwrap_or_default)]` on by default