diff options
Diffstat (limited to 'ext/node_resolver/sync.rs')
-rw-r--r-- | ext/node_resolver/sync.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ext/node_resolver/sync.rs b/ext/node_resolver/sync.rs deleted file mode 100644 index 3c4729aa2..000000000 --- a/ext/node_resolver/sync.rs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. - -pub use inner::*; - -#[cfg(feature = "sync")] -mod inner { - #![allow(clippy::disallowed_types)] - - pub use std::sync::Arc as MaybeArc; - - pub use core::marker::Send as MaybeSend; - pub use core::marker::Sync as MaybeSync; -} - -#[cfg(not(feature = "sync"))] -mod inner { - pub use std::rc::Rc as MaybeArc; - - pub trait MaybeSync {} - impl<T> MaybeSync for T where T: ?Sized {} - pub trait MaybeSend {} - impl<T> MaybeSend for T where T: ?Sized {} -} |