Lexer and friends #160
check.yml
on: pull_request
stable / fmt
7s
nightly / doc
16s
ubuntu / stable / features
11s
Matrix: clippy
Matrix: msrv
Annotations
10 warnings
useless conversion to the same type: `std::string::String`:
src/parser/heading.rs#L65
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
|
useless conversion to the same type: `std::string::String`:
src/parser/heading.rs#L42
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
|
`to_string` applied to a type that implements `Display` in `format!` args:
src/nodes/list.rs#L154
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
|
beta / clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
beta / clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
useless conversion to the same type: `std::string::String`:
src/parser/heading.rs#L65
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
|
useless conversion to the same type: `std::string::String`:
src/parser/heading.rs#L42
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
|
`to_string` applied to a type that implements `Display` in `format!` args:
src/nodes/list.rs#L154
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
|
stable / clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
stable / clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|