Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Nov 13, 2023
1 parent 807c120 commit 9839e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const BACKEND_DIR: &str = "backend-auth";
)]
pub struct PinId(u8);

/// Error obtained when trying to parse a [`PinId`][] either through [`PinId::from_path`][] or through the [`FromStr`](core::str::FromStr) implementation.
/// Error obtained when trying to parse a [`PinId`][] either through [`PinId::from_path`][] or through the [`FromStr`][] implementation.
#[derive(
Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd, Deserialize, Serialize,
)]
Expand Down Expand Up @@ -145,7 +145,7 @@ impl PinId {
return Err(PinIdFromStrError);
}

let id = u8::from_str_radix(&*path, 16).map_err(|_| PinIdFromStrError)?;
let id = u8::from_str_radix(path, 16).map_err(|_| PinIdFromStrError)?;
Ok(PinId(id))
}
}
Expand Down

0 comments on commit 9839e90

Please sign in to comment.