Skip to content

Commit 527e7a7

Browse files
committed
Replace last use of anyhow with Box<dyn Error>.
We don't care about the error kind here, we just need to pass it to the caller and print. anyhow seems a bit too heavy for the task. While we're at it, remove unused futures-channel.
1 parent 0589b22 commit 527e7a7

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

Cargo.lock

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ rust-version = "1.81.0"
1010
crate-type = ["cdylib"]
1111

1212
[dependencies]
13-
anyhow = "1.0.98"
1413
base64 = "0.22.1"
1514
bytes = "1.10.1"
1615
constcat = "0.6.1"
17-
futures-channel = "0.3.31"
1816
http = "1.3.1"
1917
http-body = "1.0.1"
2018
http-body-util = "0.1.3"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ async fn ngx_http_acme_update_certificates(amcf: &AcmeMainConfig) -> Time {
231231
async fn ngx_http_acme_update_certificates_for_issuer(
232232
amcf: &AcmeMainConfig,
233233
issuer: &conf::issuer::Issuer,
234-
) -> anyhow::Result<Time> {
234+
) -> Result<Time, ngx::allocator::Box<dyn core::error::Error>> {
235235
let log = ngx_cycle_log();
236236
let http = NgxHttpClient::new(
237237
log,

0 commit comments

Comments
 (0)