diff options
| author | Mica White <botahamec@outlook.com> | 2026-09-13 15:12:08 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-09-13 15:12:08 -0400 |
| commit | 16d6bd7ece4c4b9b72f6bd51c9b034270b745525 (patch) | |
| tree | 4ff744fc41319ce73abe06416fabeaa7c17fbd46 /src/context | |
| parent | 9fd7b94cd7c20abe66cea875a0e83e76a7a00fbc (diff) | |
Support no_stdno-std
Diffstat (limited to 'src/context')
| -rw-r--r-- | src/context/context.rs | 2 | ||||
| -rw-r--r-- | src/context/guard.rs | 12 | ||||
| -rw-r--r-- | src/context/iterator.rs | 6 | ||||
| -rw-r--r-- | src/context/tuple.rs | 2 |
4 files changed, 10 insertions, 12 deletions
diff --git a/src/context/context.rs b/src/context/context.rs index f67d686..67ee6d9 100644 --- a/src/context/context.rs +++ b/src/context/context.rs @@ -1,4 +1,4 @@ -use std::marker::PhantomData; +use core::marker::PhantomData; use crate::{ context::{LockContext, LockingIterator, LockingTuple}, diff --git a/src/context/guard.rs b/src/context/guard.rs index 0898c1f..6cd80ed 100644 --- a/src/context/guard.rs +++ b/src/context/guard.rs @@ -1,13 +1,13 @@ -use std::fmt::{Debug, Display}; -use std::hash::Hash; -use std::ops::{Deref, DerefMut}; +use core::fmt::{Debug, Display}; +use core::hash::Hash; +use core::ops::{Deref, DerefMut}; use super::ContextGuard; #[mutants::skip] // hashing involves RNG and is hard to test #[cfg(not(tarpaulin_include))] impl<Guard: Hash, Key> Hash for ContextGuard<'_, Guard, Key> { - fn hash<H: std::hash::Hasher>(&self, state: &mut H) { + fn hash<H: core::hash::Hasher>(&self, state: &mut H) { self.guard.hash(state) } } @@ -20,13 +20,13 @@ impl<Guard: Hash, Key> Hash for ContextGuard<'_, Guard, Key> { #[mutants::skip] #[cfg(not(tarpaulin_include))] impl<Guard: Debug, Key> Debug for ContextGuard<'_, Guard, Key> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { Debug::fmt(&**self, f) } } impl<Guard: Display, Key> Display for ContextGuard<'_, Guard, Key> { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { Display::fmt(&**self, f) } } diff --git a/src/context/iterator.rs b/src/context/iterator.rs index 1eacaea..d7f7287 100644 --- a/src/context/iterator.rs +++ b/src/context/iterator.rs @@ -1,7 +1,5 @@ -use std::{ - iter::{Fuse, Peekable, Skip, Take}, - marker::PhantomData, -}; +use core::iter::{Fuse, Peekable, Skip, Take}; +use core::marker::PhantomData; use super::{ContextGuard, LockingIterator}; diff --git a/src/context/tuple.rs b/src/context/tuple.rs index d2a1b0d..65d372a 100644 --- a/src/context/tuple.rs +++ b/src/context/tuple.rs @@ -1,4 +1,4 @@ -use std::marker::PhantomData; +use core::marker::PhantomData; use crate::{ context::{ContextGuard, LockingIterator, LockingTuple}, |
