Skip to content

Add string interpolation parsing #1288

Add string interpolation parsing

Add string interpolation parsing #1288

GitHub Actions / clippy failed Mar 26, 2024 in 1s

clippy

3 errors

Details

Results

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

Versions

  • rustc 1.77.0 (aedd173a2 2024-03-17)
  • cargo 1.77.0 (3fe68eabf 2024-02-29)
  • clippy 0.1.77 (aedd173 2024-03-17)

Annotations

Check failure on line 90 in interpolate/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> interpolate/src/lib.rs:90:23
    |
90  |             .with_loc(Some(location.clone()))
    |              -------- ^^^^^^^^^^^^^^^^^^^^^^ expected `SpanTuple`, found `Option<SpanTuple>`
    |              |
    |              arguments to this method are incorrect
    |
    = note: expected struct `location::SpanTuple`
                 found enum `std::option::Option<location::SpanTuple>`
note: method defined here
   --> /home/runner/work/jinko/jinko/error/src/lib.rs:271:12
    |
271 |     pub fn with_loc(self, loc: SpanTuple) -> Error {
    |            ^^^^^^^^

Check failure on line 58 in interpolate/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> interpolate/src/lib.rs:58:19
    |
58  |         .with_loc(Some(loc))
    |          -------- ^^^^^^^^^ expected `SpanTuple`, found `Option<SpanTuple>`
    |          |
    |          arguments to this method are incorrect
    |
    = note: expected struct `location::SpanTuple`
                 found enum `std::option::Option<location::SpanTuple>`
note: method defined here
   --> /home/runner/work/jinko/jinko/error/src/lib.rs:271:12
    |
271 |     pub fn with_loc(self, loc: SpanTuple) -> Error {
    |            ^^^^^^^^

Check failure on line 61 in interpolate/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

expected value, found enum `ParseError`

error[E0423]: expected value, found enum `ParseError`
  --> interpolate/src/lib.rs:61:25
   |
61 |     Err(nom::Err::Error(ParseError))
   |                         ^^^^^^^^^^
   |
help: the following enum variants are available
   |
61 |     Err(nom::Err::Error((ParseError::Incomplete(/* fields */))))
   |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61 |     Err(nom::Err::Error((ParseError::Msg(/* fields */))))
   |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61 |     Err(nom::Err::Error((ParseError::Mult(/* fields */))))
   |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61 |     Err(nom::Err::Error((ParseError::Nom(/* fields */))))
   |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~