Skip to content

Commit

Permalink
Avoid snafu deprecation warning
Browse files Browse the repository at this point in the history
We can just use the Display impl since defmt isn't being
used any more
  • Loading branch information
mkj committed Jun 8, 2024
1 parent 411a670 commit 1b11857
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions embassy/demos/picow/src/flashconfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@ fn config_hash(config: &SSHConfig) -> Result<[u8; 32]> {

/// Loads a SSHConfig at startup. Good for persisting hostkeys.
pub async fn load_or_create(flash: &mut Fl<'_>) -> Result<SSHConfig> {
use snafu::Error;
match load(flash).await {
Ok(c) => {
info!("Good existing config");
return Ok(c)
}
// Err(sunset::Error::Custom(msg: msg)) => info!("Existing config bad, making new. {}", msg),
Err(e) => info!("Existing config bad, making new. {}", e.description()),
Err(e) => info!("Existing config bad, making new. {e}"),
}

create(flash).await
Expand Down

0 comments on commit 1b11857

Please sign in to comment.