Skip to content

Lexer and friends

Lexer and friends #161

GitHub Actions / clippy succeeded Sep 25, 2024 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.82.0-beta.4 (8c27a2ba6 2024-09-21)
  • cargo 1.82.0-beta.4 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (8c27a2b 2024-09-21)

Annotations

Check warning on line 65 in src/parser/heading.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `std::string::String`

warning: useless conversion to the same type: `std::string::String`
  --> src/parser/heading.rs:65:19
   |
65 |             .push(String::from(p.range_to_string(start..p.pos() - end_modifier)).into());
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `p.range_to_string(start..p.pos() - end_modifier)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion

Check warning on line 42 in src/parser/heading.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

useless conversion to the same type: `std::string::String`

warning: useless conversion to the same type: `std::string::String`
  --> src/parser/heading.rs:42:35
   |
42 | ...                   .push(String::from(p.range_to_string(start..pos)).into());
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `p.range_to_string(start..pos)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
   = note: `#[warn(clippy::useless_conversion)]` on by default

Check warning on line 154 in src/nodes/list.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`to_string` applied to a type that implements `Display` in `format!` args

warning: `to_string` applied to a type that implements `Display` in `format!` args
   --> src/nodes/list.rs:154:68
    |
154 |             f.write_str(format!("{}{} {}", level, self.list_type, n.to_string()).as_str())?;
    |                                                                    ^^^^^^^^^^^^ help: remove this
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
    = note: `#[warn(clippy::to_string_in_format_args)]` on by default