Skip to content

fix loop...

fix loop... #98

Triggered via push March 17, 2024 14:39
Status Failure
Total duration 1m 10s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 7 warnings
test
Process completed with exit code 101.
mismatched types: src/parser/link_url.rs#L388
error[E0308]: mismatched types --> src/parser/link_url.rs:388:5 | 387 | fn scheme(input: &str) -> IResult<&str, &str, CustomError<&str>> { | -------------------------------------- expected `std::result::Result<(&str, &str), nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>>` because of return type 388 | / recognize(tuple((take_while_m_n(1, 1, is_alpha), take_while(is_scheme)))(input) 389 | | } | |_^ expected enum `std::result::Result`, found opaque type | ::: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-7.1.3/src/combinator/mod.rs:508:6 | 508 | ) -> impl FnMut(I) -> IResult<I, I, E> | --------------------------------- the found opaque type | = note: expected enum `std::result::Result<(&str, &str), nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>>` found opaque type `impl FnMut(_) -> std::result::Result<(_, _), nom::Err<_>>` help: use parentheses to call this closure | 389 | }(_) | +++
expected a `std::ops::FnMut<(_,)>` closure, found `std::result::Result<(&str, (&str, &str)), nom::Err<_>>`: src/parser/link_url.rs#L388
error[E0277]: expected a `std::ops::FnMut<(_,)>` closure, found `std::result::Result<(&str, (&str, &str)), nom::Err<_>>` --> src/parser/link_url.rs:388:15 | 388 | recognize(tuple((take_while_m_n(1, 1, is_alpha), take_while(is_scheme)))(input) | --------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnMut<(_,)>` closure, found `std::result::Result<(&str, (&str, &str)), nom::Err<_>>` | | | required by a bound introduced by this call | = help: the trait `std::ops::FnMut<(_,)>` is not implemented for `std::result::Result<(&str, (&str, &str)), nom::Err<_>>` = help: the following other types implement trait `nom::Parser<I, O, E>`: <nom::And<F, G> as nom::Parser<I, (O1, O2), E>> <nom::AndThen<F, G, O1> as nom::Parser<I, O2, E>> <nom::FlatMap<F, G, O1> as nom::Parser<I, O2, E>> <nom::Into<F, O1, O2, E1, E2> as nom::Parser<I, O2, E2>> <nom::Map<F, G, O1> as nom::Parser<I, O2, E>> <nom::Or<F, G> as nom::Parser<I, O, E>> <std::boxed::Box<(dyn nom::Parser<I, O, E> + 'a)> as nom::Parser<I, O, E>> = note: required because of the requirements on the impl of `nom::Parser<_, _, _>` for `std::result::Result<(&str, (&str, &str)), nom::Err<_>>` note: required by a bound in `nom::combinator::recognize` --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/nom-7.1.3/src/combinator/mod.rs:510:6 | 510 | F: Parser<I, O, E>, | ^^^^^^^^^^^^^^^ required by this bound in `nom::combinator::recognize`
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
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/
unused import: `super::Element`: src/parser/link_url.rs#L14
warning: unused import: `super::Element` --> src/parser/link_url.rs:14:5 | 14 | use super::Element; | ^^^^^^^^^^^^^^
unused import: `super::base_parsers::*`: src/parser/parse_from_text/text_elements.rs#L5
warning: unused import: `super::base_parsers::*` --> src/parser/parse_from_text/text_elements.rs:5:5 | 5 | use super::base_parsers::*; | ^^^^^^^^^^^^^^^^^^^^^^
unused import: `LinkDestination`: src/parser/parse_from_text/text_elements.rs#L2
warning: unused import: `LinkDestination` --> src/parser/parse_from_text/text_elements.rs:2:31 | 2 | use crate::parser::link_url::{LinkDestination, parse_link}; | ^^^^^^^^^^^^^^^
unused imports: `direct_delimited`, `is_white_space_but_not_linebreak`, `is_white_space`: src/parser/parse_from_text/desktop_subset.rs#L6
warning: unused imports: `direct_delimited`, `is_white_space_but_not_linebreak`, `is_white_space` --> src/parser/parse_from_text/desktop_subset.rs:6:5 | 6 | direct_delimited, is_white_space, is_white_space_but_not_linebreak, CustomError, | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `super::base_parsers::*`: src/parser/parse_from_text/desktop_subset.rs#L4
warning: unused import: `super::base_parsers::*` --> src/parser/parse_from_text/desktop_subset.rs:4:5 | 4 | use super::base_parsers::*; | ^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default