Skip to content

feature: add sd card manager support recovering from sd card getting disconnected #223

feature: add sd card manager support recovering from sd card getting disconnected

feature: add sd card manager support recovering from sd card getting disconnected #223

GitHub Actions / clippy failed Mar 4, 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.76.0 (07dca489a 2024-02-04)
  • cargo 1.76.0 (c84b36747 2024-01-18)
  • clippy 0.1.76 (07dca48 2024-02-04)

Annotations

Check failure on line 19 in libraries/messages/src/logging/macros.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the trait bound `logging::ErrorContext: defmt::Format` is not satisfied

error[E0277]: the trait bound `logging::ErrorContext: defmt::Format` is not satisfied
   --> libraries/messages/src/logging/macros.rs:19:47
    |
19  |                           Event::$e($($p),*) => defmt::write!(f, $s, $($p),*),
    |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `defmt::Format` is not implemented for `logging::ErrorContext`
    |
   ::: libraries/messages/src/logging/mod.rs:28:1
    |
28  | / display_event!(
29  | |     [Initialized, "Initialized"],
30  | |     [Error, "Encountered error: {}", e],
31  | |     [MainDeploy, "Main parachute deployed"]
32  | | );
    | |_- in this macro invocation
    |
    = help: the following other types implement trait `defmt::Format`:
              bool
              char
              isize
              i8
              i16
              i32
              i64
              i128
            and 154 others
    = note: required for `&logging::ErrorContext` to implement `defmt::Format`
note: required by a bound in `defmt::export::fmt`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/defmt-0.3.5/src/export/mod.rs:137:15
    |
137 | pub fn fmt<T: Format + ?Sized>(f: &T) {
    |               ^^^^^^ required by this bound in `fmt`
    = note: this error originates in the macro `defmt::write` which comes from the expansion of the macro `display_event` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 9 in libraries/messages/src/logging/macros.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`logging::ErrorContext` doesn't implement `core::fmt::Display`

error[E0277]: `logging::ErrorContext` doesn't implement `core::fmt::Display`
  --> libraries/messages/src/logging/macros.rs:9:63
   |
9  |                           Event::$e($($p),*) => write!(f, $s, $($p),*),
   |                                                                 ^^ `logging::ErrorContext` cannot be formatted with the default formatter
   |
  ::: libraries/messages/src/logging/mod.rs:28:1
   |
28 | / display_event!(
29 | |     [Initialized, "Initialized"],
30 | |     [Error, "Encountered error: {}", e],
31 | |     [MainDeploy, "Main parachute deployed"]
32 | | );
   | |_- in this macro invocation
   |
   = help: the trait `core::fmt::Display` is not implemented for `logging::ErrorContext`
   = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
   = note: this error originates in the macro `$crate::format_args` which comes from the expansion of the macro `display_event` (in Nightly builds, run with -Z macro-backtrace for more info)