Skip to content

update readme

update readme #105

GitHub Actions / clippy succeeded Nov 3, 2023 in 1s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.74.0-beta.4 (489647f98 2023-10-21)
  • cargo 1.74.0-beta.4 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (489647f 2023-10-21)

Annotations

Check warning on line 56 in src/nodes/highlight.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

length comparison to zero

warning: length comparison to zero
  --> src/nodes/highlight.rs:56:35
   |
56 |         let delimiter_length = if self.nodes.len() == 0 {
   |                                   ^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `self.nodes.is_empty()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
   = note: `#[warn(clippy::len_zero)]` on by default