Skip to content

Commit

Permalink
Fix loom imports
Browse files Browse the repository at this point in the history
  • Loading branch information
vnetserg committed Jan 16, 2024
1 parent bf9f690 commit 18d4d86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tokio/src/loom/mocked.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
pub(crate) use loom::*;

pub(crate) mod sync {
use std::ops::{Deref, DerefMut};
use std::{
ops::{Deref, DerefMut},
sync::{LockResult, PoisonError},
};

pub(crate) use loom::sync::{LockResult, MutexGuard, PoisonError};
pub(crate) use loom::sync::MutexGuard;

#[derive(Debug)]
pub(crate) struct Mutex<T>(loom::sync::Mutex<T>);
Expand Down

0 comments on commit 18d4d86

Please sign in to comment.