Skip to content

Commit

Permalink
fix(dropper): add anyhow dep
Browse files Browse the repository at this point in the history
Signed-off-by: vados <[email protected]>
  • Loading branch information
t3hmrman committed Sep 11, 2024
1 parent f44eb65 commit f2b25f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ proc-macro2 = "1.0.69"
quote = "1.0.33"
syn = "2.0.38"
futures = "0.3.28"
anyhow = "1.0.87"
1 change: 1 addition & 0 deletions crates/async-dropper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ async-std = [
]

[dependencies]
anyhow.workspace = true
async-trait.workspace = true
async-std = { workspace = true, optional = true }
futures.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/async-dropper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ impl From<Box<dyn std::error::Error>> for AsyncDropError {
// Create a impl for anyhow::Error to allow ? to be used with AsyncDropError
impl From<anyhow::Error> for AsyncDropError {
fn from(value: anyhow::Error) -> Self {
AsyncDropError::UnexpectedError(Box::new(value))
AsyncDropError::UnexpectedError(value.into())
}
}

0 comments on commit f2b25f8

Please sign in to comment.