From 2dfc6a74bbfdd9db608286e2819c3f86f8371c72 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 7 May 2021 11:39:04 +0200 Subject: [PATCH] mark Error as must_use Signed-off-by: Wolfgang Bumiller --- src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.rs b/src/error.rs index 56168404..54af9c8d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -12,6 +12,7 @@ pub const USER_ACTION_REQUIRED: &str = "urn:ietf:params:acme:error:userActionReq /// Error types returned by this crate. #[derive(Debug)] +#[must_use = "unused errors have no effect"] pub enum Error { /// A `badNonce` API response. The request should be retried with the new nonce received along /// with this response.