summaryrefslogtreecommitdiffstats
path: root/vendor/crypto-bigint/src/checked.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/crypto-bigint/src/checked.rs')
-rw-r--r--vendor/crypto-bigint/src/checked.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/crypto-bigint/src/checked.rs b/vendor/crypto-bigint/src/checked.rs
index 2eaa7013b..d1f61604d 100644
--- a/vendor/crypto-bigint/src/checked.rs
+++ b/vendor/crypto-bigint/src/checked.rs
@@ -8,7 +8,7 @@ use serdect::serde::{Deserialize, Deserializer, Serialize, Serializer};
/// Provides intentionally-checked arithmetic on `T`.
///
/// Internally this leverages the [`CtOption`] type from the [`subtle`] crate
-/// in order to handle overflows in constant time.
+/// in order to handle overflows.
#[derive(Copy, Clone, Debug)]
pub struct Checked<T>(pub CtOption<T>);
@@ -83,7 +83,9 @@ impl<T: Copy + Serialize> Serialize for Checked<T> {
}
#[cfg(all(test, feature = "serde"))]
+#[allow(clippy::unwrap_used)]
mod tests {
+
use crate::{Checked, U64};
use subtle::{Choice, ConstantTimeEq, CtOption};