fix some stuff #82
Annotations
6 errors and 6 warnings
`?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`:
src/parser/parse_from_text/link_element.rs#L357
error[E0277]: `?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
--> src/parser/parse_from_text/link_element.rs:357:93
|
352 | pub fn link(input: &str) -> IResult<&str, Element, CustomError<&str>> {
| ----------------------------------------- expected `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>` because of this
...
357 | let (input_, fragment) = opt(recognize(tuple((char('#'), take_while_ifragment))))(input)?;
| ^ the trait `std::convert::From<nom::Err<nom::error::Error<&str>>>` is not implemented for `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::ops::FromResidual<R>`:
<std::result::Result<T, F> as std::ops::FromResidual<std::ops::Yeet<E>>>
<std::result::Result<T, F> as std::ops::FromResidual<std::result::Result<std::convert::Infallible, E>>>
= note: required because of the requirements on the impl of `std::ops::FromResidual<std::result::Result<std::convert::Infallible, nom::Err<nom::error::Error<&str>>>>` for `std::result::Result<(&str, parser::Element<'_>), nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>>`
|
`?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`:
src/parser/parse_from_text/link_element.rs#L356
error[E0277]: `?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
--> src/parser/parse_from_text/link_element.rs:356:75
|
352 | pub fn link(input: &str) -> IResult<&str, Element, CustomError<&str>> {
| ----------------------------------------- expected `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>` because of this
...
356 | let (input, query) = opt(recognize(tuple((char('?'), iquery))))(input)?;
| ^ the trait `std::convert::From<nom::Err<nom::error::Error<&str>>>` is not implemented for `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::ops::FromResidual<R>`:
<std::result::Result<T, F> as std::ops::FromResidual<std::ops::Yeet<E>>>
<std::result::Result<T, F> as std::ops::FromResidual<std::result::Result<std::convert::Infallible, E>>>
= note: required because of the requirements on the impl of `std::ops::FromResidual<std::result::Result<std::convert::Infallible, nom::Err<nom::error::Error<&str>>>>` for `std::result::Result<(&str, parser::Element<'_>), nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>>`
|
`?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`:
src/parser/parse_from_text/link_element.rs#L250
error[E0277]: `?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
--> src/parser/parse_from_text/link_element.rs:250:15
|
234 | fn ihier_part(input: &str) -> IResult<&str, (&str, &str, bool), CustomError<&str>> {
| ---------------------------------------------------- expected `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>` because of this
...
250 | )))(input)?;
| ^ the trait `std::convert::From<nom::Err<nom::error::Error<&str>>>` is not implemented for `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::ops::FromResidual<R>`:
<std::result::Result<T, F> as std::ops::FromResidual<std::ops::Yeet<E>>>
<std::result::Result<T, F> as std::ops::FromResidual<std::result::Result<std::convert::Infallible, E>>>
= note: required because of the requirements on the impl of `std::ops::FromResidual<std::result::Result<std::convert::Infallible, nom::Err<nom::error::Error<&str>>>>` for `std::result::Result<(&str, (&str, &str, bool)), nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>>`
|
`?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`:
src/parser/parse_from_text/link_element.rs#L214
error[E0277]: `?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
--> src/parser/parse_from_text/link_element.rs:214:92
|
212 | fn iauthority(input: &str) -> IResult<&str, (&str, &str, bool), CustomError<&str>> /* (iauthority, host, bool) */ {
| ---------------------------------------------------- expected `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>` because of this
213 | let i = <&str>::clone(&input);
214 | let (input, userinfo) = opt(recognize(tuple((take_while_iuserinfo, char('@')))))(input)?;
| ^ the trait `std::convert::From<nom::Err<nom::error::Error<&str>>>` is not implemented for `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::ops::FromResidual<R>`:
<std::result::Result<T, F> as std::ops::FromResidual<std::ops::Yeet<E>>>
<std::result::Result<T, F> as std::ops::FromResidual<std::result::Result<std::convert::Infallible, E>>>
= note: required because of the requirements on the impl of `std::ops::FromResidual<std::result::Result<std::convert::Infallible, nom::Err<nom::error::Error<&str>>>>` for `std::result::Result<(&str, (&str, &str, bool)), nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>>`
|
`?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`:
src/parser/parse_from_text/link_element.rs#L195
error[E0277]: `?` couldn't convert the error to `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
--> src/parser/parse_from_text/link_element.rs:195:68
|
187 | fn parse_host(input: &str) -> IResult<&str, (&str, bool), CustomError<&str>> {
| ---------------------------------------------- expected `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>` because of this
...
195 | let (input, host) = alt((ipv4, take_while_ireg))(input)?;
| ^ the trait `std::convert::From<nom::Err<nom::error::Error<&str>>>` is not implemented for `nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::ops::FromResidual<R>`:
<std::result::Result<T, F> as std::ops::FromResidual<std::ops::Yeet<E>>>
<std::result::Result<T, F> as std::ops::FromResidual<std::result::Result<std::convert::Infallible, E>>>
= note: required because of the requirements on the impl of `std::ops::FromResidual<std::result::Result<std::convert::Infallible, nom::Err<nom::error::Error<&str>>>>` for `std::result::Result<(&str, (&str, bool)), nom::Err<parser::parse_from_text::base_parsers::CustomError<&str>>>`
|
test
Process completed with exit code 101.
|
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: `crate::parser::link_url::LinkDestination`:
src/parser/parse_from_text/text_elements.rs#L2
warning: unused import: `crate::parser::link_url::LinkDestination`
--> src/parser/parse_from_text/text_elements.rs:2:5
|
2 | use crate::parser::link_url::LinkDestination;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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
|
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/
|