Merge pull request #81 from domodwyer/dependabot/cargo/pest-2.7.5 #171
Annotations
8 warnings
this expression creates a reference which is immediately dereferenced by the compiler:
src/lib.rs#L98
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> src/lib.rs:98:37
|
98 | print_types(&mut out, &ast, &self.derive.as_str())?;
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `self.derive.as_str()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
use of `unwrap_or_else` to construct default value:
src/ast/array.rs#L66
warning: use of `unwrap_or_else` to construct default value
--> src/ast/array.rs:66:14
|
66 | .unwrap_or_else(|| "".to_string());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_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
|
name `EOF` contains a capitalized acronym:
src/ast/node.rs#L23
warning: name `EOF` contains a capitalized acronym
--> src/ast/node.rs:23:5
|
23 | EOF,
| ^^^ help: consider making the acronym lowercase, except the initial letter (notice the capitalization): `Eof`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
= note: `#[warn(clippy::upper_case_acronyms)]` on by default
|
this lifetime isn't used in the impl:
src/ast/basic_type.rs#L82
warning: this lifetime isn't used in the impl
--> src/ast/basic_type.rs:82:6
|
82 | impl<'a> From<String> for BasicType {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
this lifetime isn't used in the impl:
src/ast/basic_type.rs#L59
warning: this lifetime isn't used in the impl
--> src/ast/basic_type.rs:59:6
|
59 | impl<'a> std::fmt::Display for BasicType {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
|
this lifetime isn't used in the impl:
src/ast/basic_type.rs#L15
warning: this lifetime isn't used in the impl
--> src/ast/basic_type.rs:15:6
|
15 | impl<'a> BasicType {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes
= note: `#[warn(clippy::extra_unused_lifetimes)]` on by default
|
clippy_check
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/
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|