From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/signature/src/error.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'vendor/signature/src/error.rs') diff --git a/vendor/signature/src/error.rs b/vendor/signature/src/error.rs index 06e22d527..1bfaf33bf 100644 --- a/vendor/signature/src/error.rs +++ b/vendor/signature/src/error.rs @@ -22,11 +22,8 @@ pub type Result = core::result::Result; /// /// [BB'06]: https://en.wikipedia.org/wiki/Daniel_Bleichenbacher #[derive(Default)] +#[non_exhaustive] pub struct Error { - /// Prevent from being instantiated as `Error {}` when the `std` feature - /// is disabled - _private: (), - /// Source of the error (if applicable). #[cfg(feature = "std")] source: Option>, @@ -45,12 +42,10 @@ impl Error { /// cases are for propagating errors related to external signers, e.g. /// communication/authentication errors with HSMs, KMS, etc. #[cfg(feature = "std")] - #[cfg_attr(docsrs, doc(cfg(feature = "std")))] pub fn from_source( source: impl Into>, ) -> Self { Self { - _private: (), source: Some(source.into()), } } -- cgit v1.2.3