summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkyren <kerriganw@gmail.com>2018-02-06 00:05:35 -0500
committerkyren <kerriganw@gmail.com>2018-02-06 00:05:35 -0500
commitd43f8129f3e7d9f3433c79c756f131fbdf463ff2 (patch)
treef15095d9283f74fd58fdd557a2ab1fa755a40bff /src
parentfe35742026af80b5ac120dfb9e5966689a698040 (diff)
downloadmlua-d43f8129f3e7d9f3433c79c756f131fbdf463ff2.zip
experimentally make `RegistryKey` Send
Diffstat (limited to 'src')
-rw-r--r--src/types.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/types.rs b/src/types.rs
index 0d4c5ec..0a2e6ca 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -1,6 +1,6 @@
use std::fmt;
use std::os::raw::{c_int, c_void};
-use std::rc::Rc;
+use std::sync::Arc;
use ffi;
use error::Result;
@@ -18,17 +18,17 @@ pub struct LightUserData(pub *mut c_void);
// Clone-able id where every clone of the same id compares equal, and are guaranteed unique.
#[derive(Debug, Clone)]
-pub(crate) struct SharedId(Rc<()>);
+pub(crate) struct SharedId(Arc<()>);
impl SharedId {
pub(crate) fn new() -> SharedId {
- SharedId(Rc::new(()))
+ SharedId(Arc::new(()))
}
}
impl PartialEq for SharedId {
fn eq(&self, other: &SharedId) -> bool {
- Rc::ptr_eq(&self.0, &other.0)
+ Arc::ptr_eq(&self.0, &other.0)
}
}