Skip to content

Commit

Permalink
bump dim to v0.3.0-rc5
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarleanu committed Oct 18, 2021
1 parent a4c069b commit 976d12a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions dim/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,6 @@ pub type StateManager = nightfall::StateManager;
pub type DbConnection = database::DbConnection;
pub type EventTx = UnboundedSender<String>;

/// Hacky type we use to implement clone on deref types.
#[derive(Clone, Debug)]
pub struct CloneOnDeref<T> {
inner: T,
}

impl<T: Clone> CloneOnDeref<T> {
pub fn new(inner: T) -> Self {
Self { inner }
}

pub fn get(&self) -> T {
self.inner.clone()
}
}

unsafe impl<T: Send> Send for CloneOnDeref<T> {}
unsafe impl<T: Clone> Sync for CloneOnDeref<T> {}

/// Path to where metadata is stored and should be fetched to.
pub static METADATA_PATH: OnceCell<String> = OnceCell::new();

Expand Down

0 comments on commit 976d12a

Please sign in to comment.