Skip to content

Commit 4d7cd83

Browse files
Merge pull request #9 from theseus-rs/update-archive-error
refactor: update postgresql_embedded::ArchiveError argument
2 parents 1d3a73f + cc33163 commit 4d7cd83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgresql_embedded/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub type Result<T, E = Error> = core::result::Result<T, E>;
88
pub enum Error {
99
/// Error when PostgreSQL archive operations fail
1010
#[error(transparent)]
11-
ArchiveError(anyhow::Error),
11+
ArchiveError(postgresql_archive::Error),
1212
/// Error when the hash of the archive does not match the expected hash
1313
#[error("Archive hash [{archive_hash}] does not match expected hash [{hash}]")]
1414
ArchiveHashMismatch { archive_hash: String, hash: String },
@@ -47,7 +47,7 @@ pub enum Error {
4747
/// Convert PostgreSQL [archive errors](postgresql_archive::Error) to an [embedded errors](Error::ArchiveError)
4848
impl From<postgresql_archive::Error> for Error {
4949
fn from(error: postgresql_archive::Error) -> Self {
50-
Error::ArchiveError(error.into())
50+
Error::ArchiveError(error)
5151
}
5252
}
5353

0 commit comments

Comments
 (0)