mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
remove various things now that Rust 1.17 is required
std::ptr::eq and Arc::ptr_eq are now usuable, and we can replace a panic!() with abort().
This commit is contained in:
parent
567f5e8985
commit
096cee8ebc
6 changed files with 7 additions and 26 deletions
|
@ -186,14 +186,6 @@ macro_rules! reexport_computed_values {
|
|||
}
|
||||
longhand_properties_idents!(reexport_computed_values);
|
||||
|
||||
/// Pointer equality
|
||||
///
|
||||
/// FIXME: Remove this and use std::ptr::eq once we require Rust 1.17
|
||||
#[inline]
|
||||
pub fn ptr_eq<T: ?Sized>(a: *const T, b: *const T) -> bool {
|
||||
a == b
|
||||
}
|
||||
|
||||
/// Serializes as CSS a comma-separated list of any `T` that supports being
|
||||
/// serialized as CSS.
|
||||
pub fn serialize_comma_separated_list<W, T>(dest: &mut W,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue