Skip to content

Merge pull request #68 from magic-akari/master #147

Merge pull request #68 from magic-akari/master

Merge pull request #68 from magic-akari/master #147

GitHub Actions / clippy failed Dec 11, 2024 in 1s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check failure on line 46 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
  --> src/lib.rs:46:6
   |
46 | impl<'a> Default for FormatOptions<'a> {
   |      ^^                            ^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
   = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
   |
46 - impl<'a> Default for FormatOptions<'a> {
46 + impl Default for FormatOptions<'_> {
   |

Check failure on line 481 in src/tokenizer.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

elided lifetime has a name

error: elided lifetime has a name
   --> src/tokenizer.rs:481:46
    |
479 | fn get_top_level_reserved_token<'a>(
    |                                 -- lifetime `'a` declared here
480 |     last_reserved_top_level_token: Option<Token<'a>>,
481 | ) -> impl FnMut(&'a str) -> IResult<&'a str, Token> {
    |                                              ^^^^^ this elided lifetime gets resolved as `'a`
    |
    = note: `-D elided-named-lifetimes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(elided_named_lifetimes)]`