Skip to content

Commit

Permalink
Fix incorrectly formatted errors in wireguard-go module
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Aug 31, 2023
1 parent e2d0058 commit 32f5426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions talpid-wireguard/src/wireguard_go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ mod stats {

#[derive(err_derive::Error, Debug, PartialEq)]
pub enum Error {
#[error(display = "Failed to parse peer pubkey from string \"_0\"")]
#[error(display = "Failed to parse peer pubkey from string \"{}\"", _0)]
PubKeyParse(String, #[error(source)] hex::FromHexError),

#[error(display = "Failed to parse integer from string \"_0\"")]
#[error(display = "Failed to parse integer from string \"{}\"", _0)]
IntParse(String, #[error(source)] std::num::ParseIntError),
}

Expand Down

0 comments on commit 32f5426

Please sign in to comment.