mark Error as must_use

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-05-07 11:39:04 +02:00
parent 0ef3c33538
commit 2dfc6a74bb

View File

@ -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.