Skip to content

refactor a bit

refactor a bit #188

Triggered via pull request January 25, 2025 17:18
@chancedchanced
synchronize #100
error-wrapper
Status Failure
Total duration 28s
Artifacts

nostd.yml

on: pull_request
Matrix: nostd
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 1 warning
thumbv7m-none-eabi
Process completed with exit code 101.
aarch64-unknown-none
The job was canceled because "thumbv7m-none-eabi" failed.
aarch64-unknown-none
The operation was canceled.
[clippy] src/diagnostic.rs#L204: src/diagnostic.rs#L204
error[E0277]: the trait bound `diagnostic::Borrowed<'a, D>: std::error::Error` is not satisfied --> src/diagnostic.rs:204:48 | 204 | impl<'a, D: Diagnostic> miette::Diagnostic for Borrowed<'a, D> { | ^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `diagnostic::Borrowed<'a, D>` | note: required by a bound in `miette::Diagnostic` --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/miette-7.4.0/src/protocol.rs:20:23 | 20 | pub trait Diagnostic: std::error::Error { | ^^^^^^^^^^^^^^^^^ required by this bound in `Diagnostic`
[clippy] src/diagnostic.rs#L210: src/diagnostic.rs#L210
error[E0277]: the trait bound `<D as diagnostic::Diagnostic>::Subject: miette::SourceCode` is not satisfied --> src/diagnostic.rs:210:14 | 210 | Some(self.subject) | ^^^^^^^^^^^^ the trait `miette::SourceCode` is not implemented for `<D as diagnostic::Diagnostic>::Subject` | = note: required for the cast from `&'a <D as diagnostic::Diagnostic>::Subject` to `&dyn miette::SourceCode` help: consider further restricting the associated type | 209 | fn source_code(&self) -> Option<&dyn miette::SourceCode> where <D as diagnostic::Diagnostic>::Subject: miette::SourceCode { | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[clippy] src/diagnostic.rs#L214: src/diagnostic.rs#L214
error[E0277]: the trait bound `&diagnostic::Borrowed<'_, D>: diagnostic::Diagnostic` is not satisfied --> src/diagnostic.rs:214:28 | 214 | Diagnostic::labels(&self, self.subject) | ------------------ ^^^^^ the trait `diagnostic::Diagnostic` is not implemented for `&diagnostic::Borrowed<'_, D>` | | | required by a bound introduced by this call | = help: the following other types implement trait `diagnostic::Diagnostic`: () assign::Error pointer::ParseError std::convert::Infallible
[clippy] src/diagnostic.rs#L214: src/diagnostic.rs#L214
error[E0308]: mismatched types --> src/diagnostic.rs:214:9 | 213 | fn labels(&self) -> Option<Box<dyn Iterator<Item = miette::LabeledSpan> + '_>> { | ---------------------------------------------------------- expected `std::option::Option<std::boxed::Box<dyn std::iter::Iterator<Item = miette::LabeledSpan>>>` because of return type 214 | Diagnostic::labels(&self, self.subject) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `miette::LabeledSpan`, found `diagnostic::Label` | = note: expected enum `std::option::Option<std::boxed::Box<dyn std::iter::Iterator<Item = miette::LabeledSpan>>>` found enum `std::option::Option<std::boxed::Box<(dyn std::iter::Iterator<Item = diagnostic::Label> + 'static)>>`
[clippy] src/diagnostic.rs#L214: src/diagnostic.rs#L214
error[E0277]: the trait bound `&diagnostic::Borrowed<'_, D>: diagnostic::Diagnostic` is not satisfied --> src/diagnostic.rs:214:35 | 214 | Diagnostic::labels(&self, self.subject) | ^^^^^^^^^^^^ the trait `diagnostic::Diagnostic` is not implemented for `&diagnostic::Borrowed<'_, D>` | = help: the following other types implement trait `diagnostic::Diagnostic`: () assign::Error pointer::ParseError std::convert::Infallible
[clippy] src/diagnostic.rs#L218: src/diagnostic.rs#L218
error[E0277]: the trait bound `<D as diagnostic::Diagnostic>::Related: miette::Diagnostic` is not satisfied --> src/diagnostic.rs:218:62 | 218 | self.source.related(self.subject).iter().map(|r| r as _), | ^ the trait `miette::Diagnostic` is not implemented for `<D as diagnostic::Diagnostic>::Related` | = note: required for the cast from `&<D as diagnostic::Diagnostic>::Related` to `&dyn miette::Diagnostic` help: consider further restricting the associated type | 216 | fn related<'b>(&'b self) -> Option<Box<dyn Iterator<Item = &'b dyn miette::Diagnostic> + 'b>> where <D as diagnostic::Diagnostic>::Related: miette::Diagnostic { | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[clippy] src/diagnostic.rs#L204: src/diagnostic.rs#L204
error[E0277]: the trait bound `diagnostic::Borrowed<'a, D>: std::error::Error` is not satisfied --> src/diagnostic.rs:204:48 | 204 | impl<'a, D: Diagnostic> miette::Diagnostic for Borrowed<'a, D> { | ^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `diagnostic::Borrowed<'a, D>` | note: required by a bound in `miette::Diagnostic` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/miette-7.4.0/src/protocol.rs:20:23 | 20 | pub trait Diagnostic: std::error::Error { | ^^^^^^^^^^^^^^^^^ required by this bound in `Diagnostic`
[clippy] src/diagnostic.rs#L210: src/diagnostic.rs#L210
error[E0277]: the trait bound `<D as diagnostic::Diagnostic>::Subject: miette::SourceCode` is not satisfied --> src/diagnostic.rs:210:14 | 210 | Some(self.subject) | ^^^^^^^^^^^^ the trait `miette::SourceCode` is not implemented for `<D as diagnostic::Diagnostic>::Subject` | = note: required for the cast from `&'a <D as diagnostic::Diagnostic>::Subject` to `&dyn miette::SourceCode` help: consider further restricting the associated type | 209 | fn source_code(&self) -> Option<&dyn miette::SourceCode> where <D as diagnostic::Diagnostic>::Subject: miette::SourceCode { | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[clippy] src/diagnostic.rs#L214: src/diagnostic.rs#L214
error[E0277]: the trait bound `&diagnostic::Borrowed<'_, D>: diagnostic::Diagnostic` is not satisfied --> src/diagnostic.rs:214:28 | 214 | Diagnostic::labels(&self, self.subject) | ------------------ ^^^^^ the trait `diagnostic::Diagnostic` is not implemented for `&diagnostic::Borrowed<'_, D>` | | | required by a bound introduced by this call | = help: the following other types implement trait `diagnostic::Diagnostic`: () assign::Error pointer::ParseError std::convert::Infallible
[clippy] src/diagnostic.rs#L214: src/diagnostic.rs#L214
error[E0308]: mismatched types --> src/diagnostic.rs:214:9 | 213 | fn labels(&self) -> Option<Box<dyn Iterator<Item = miette::LabeledSpan> + '_>> { | ---------------------------------------------------------- expected `std::option::Option<std::boxed::Box<dyn std::iter::Iterator<Item = miette::LabeledSpan>>>` because of return type 214 | Diagnostic::labels(&self, self.subject) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `miette::LabeledSpan`, found `diagnostic::Label` | = note: expected enum `std::option::Option<std::boxed::Box<dyn std::iter::Iterator<Item = miette::LabeledSpan>>>` found enum `std::option::Option<std::boxed::Box<(dyn std::iter::Iterator<Item = diagnostic::Label> + 'static)>>`
[clippy] src/diagnostic.rs#L214: src/diagnostic.rs#L214
error[E0277]: the trait bound `&diagnostic::Borrowed<'_, D>: diagnostic::Diagnostic` is not satisfied --> src/diagnostic.rs:214:35 | 214 | Diagnostic::labels(&self, self.subject) | ^^^^^^^^^^^^ the trait `diagnostic::Diagnostic` is not implemented for `&diagnostic::Borrowed<'_, D>` | = help: the following other types implement trait `diagnostic::Diagnostic`: () assign::Error pointer::ParseError std::convert::Infallible
[clippy] src/diagnostic.rs#L218: src/diagnostic.rs#L218
error[E0277]: the trait bound `<D as diagnostic::Diagnostic>::Related: miette::Diagnostic` is not satisfied --> src/diagnostic.rs:218:62 | 218 | self.source.related(self.subject).iter().map(|r| r as _), | ^ the trait `miette::Diagnostic` is not implemented for `<D as diagnostic::Diagnostic>::Related` | = note: required for the cast from `&<D as diagnostic::Diagnostic>::Related` to `&dyn miette::Diagnostic` help: consider further restricting the associated type | 216 | fn related<'b>(&'b self) -> Option<Box<dyn Iterator<Item = &'b dyn miette::Diagnostic> + 'b>> where <D as diagnostic::Diagnostic>::Related: miette::Diagnostic { | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
thumbv7m-none-eabi
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636