Skip to content

Commit

Permalink
#531: fix missing impl for TransactionError
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsmrekar committed Jan 16, 2024
1 parent 83442aa commit 7eae3e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/goose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,13 @@ impl From<reqwest::Error> for TransactionError {
}
}

/// Auto-convert Reqwest errors to boxed TransactionError.
impl From<reqwest::Error> for Box<TransactionError> {
fn from(value: reqwest::Error) -> Self {
Box::new(TransactionError::Reqwest(value))
}
}

/// Auto-convert Url errors.
impl From<url::ParseError> for TransactionError {
fn from(err: url::ParseError) -> TransactionError {
Expand Down

0 comments on commit 7eae3e0

Please sign in to comment.