From 16d6bd7ece4c4b9b72f6bd51c9b034270b745525 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sun, 13 Sep 2026 15:12:08 -0400 Subject: Support no_std --- src/context/guard.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/context/guard.rs') 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 Hash for ContextGuard<'_, Guard, Key> { - fn hash(&self, state: &mut H) { + fn hash(&self, state: &mut H) { self.guard.hash(state) } } @@ -20,13 +20,13 @@ impl Hash for ContextGuard<'_, Guard, Key> { #[mutants::skip] #[cfg(not(tarpaulin_include))] impl 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 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) } } -- cgit v1.3.1