Move arc_ptr_eq to style.

This commit is contained in:
Ms2ger 2016-07-11 12:13:12 +02:00
parent 8ded106186
commit 9f13278b77
6 changed files with 17 additions and 17 deletions

View file

@ -26,8 +26,6 @@ extern crate url;
#[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
extern crate xdg;
use std::sync::Arc;
pub mod basedir;
pub mod geometry;
#[cfg(feature = "servo")] #[allow(unsafe_code)] pub mod ipc;
@ -38,14 +36,6 @@ pub mod resource_files;
pub mod thread;
pub mod thread_state;
// Workaround for lack of `ptr_eq` on Arcs...
#[inline]
pub fn arc_ptr_eq<T: 'static>(a: &Arc<T>, b: &Arc<T>) -> bool {
let a: &T = &**a;
let b: &T = &**b;
(a as *const T) == (b as *const T)
}
pub fn servo_version() -> &'static str {
concat!("Servo ", env!("CARGO_PKG_VERSION"), env!("GIT_INFO"))
}