summaryrefslogtreecommitdiff
path: root/src/context/guard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/context/guard.rs')
-rw-r--r--src/context/guard.rs12
1 files changed, 6 insertions, 6 deletions
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)
}
}