From 9a3c33e42c0b14bdd3f296313ee367526092aa81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 11 Aug 2026 16:56:30 +0200 Subject: [PATCH] Implement std Error for IntegerTooSmall --- roaring/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roaring/src/lib.rs b/roaring/src/lib.rs index f6c4453b..d66f15f5 100644 --- a/roaring/src/lib.rs +++ b/roaring/src/lib.rs @@ -43,6 +43,9 @@ impl fmt::Display for IntegerTooSmall { } } +#[cfg(feature = "std")] +impl std::error::Error for IntegerTooSmall {} + /// An error type that is returned when an iterator isn't sorted. #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct NonSortedIntegers {