mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
style: Rustfmt recent changes.
This commit is contained in:
parent
69c7077b3d
commit
762abbaf9f
19 changed files with 163 additions and 101 deletions
|
@ -4,12 +4,12 @@
|
|||
|
||||
//! Helpers for different FFI pointer kinds that Gecko's FFI layer uses.
|
||||
|
||||
use gecko_bindings::structs::root::mozilla::detail::CopyablePtr;
|
||||
use servo_arc::{Arc, RawOffsetArc};
|
||||
use std::marker::PhantomData;
|
||||
use std::mem::{forget, transmute};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use std::ptr;
|
||||
use gecko_bindings::structs::root::mozilla::detail::CopyablePtr;
|
||||
|
||||
/// Indicates that a given Servo type has a corresponding Gecko FFI type.
|
||||
pub unsafe trait HasFFI: Sized + 'static {
|
||||
|
@ -345,4 +345,4 @@ impl<T> DerefMut for CopyablePtr<T> {
|
|||
fn deref_mut<'a>(&'a mut self) -> &'a mut T {
|
||||
&mut self.mPtr
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue