Skip to content

Commit c7178d7

Browse files
committed
Use core::error::Error
1 parent 76b459b commit c7178d7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ impl core::fmt::Display for TryReserveError {
255255
}
256256
}
257257

258-
#[cfg(feature = "std")]
259-
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
260-
impl std::error::Error for TryReserveError {}
258+
impl core::error::Error for TryReserveError {}
261259

262260
// NOTE: This is copied from the slice module in the std lib.
263261
/// The error type returned by [`get_disjoint_indices_mut`][`IndexMap::get_disjoint_indices_mut`].
@@ -285,6 +283,4 @@ impl core::fmt::Display for GetDisjointMutError {
285283
}
286284
}
287285

288-
#[cfg(feature = "std")]
289-
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
290-
impl std::error::Error for GetDisjointMutError {}
286+
impl core::error::Error for GetDisjointMutError {}

0 commit comments

Comments
 (0)