Skip to content

Commit

Permalink
Merge pull request #579 from tag1consulting/issue-531
Browse files Browse the repository at this point in the history
Issue #531: Fix missing impl for TransactionError
  • Loading branch information
jeremyandrews committed Jan 17, 2024
2 parents 83442aa + 7eae3e0 commit cafbadf
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 cafbadf

Please sign in to comment.