mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Make UntrustedNodeAddress a newtype.
This will allow us to make it Send after the Rust upgrade.
This commit is contained in:
parent
1b496d80de
commit
d2f0aac5ce
5 changed files with 7 additions and 5 deletions
|
@ -39,7 +39,9 @@ use serialize::{Encodable, Encoder};
|
|||
|
||||
/// The address of a node. Layout sends these back. They must be validated via
|
||||
/// `from_untrusted_node_address` before they can be used, because we do not trust layout.
|
||||
pub type UntrustedNodeAddress = *const c_void;
|
||||
#[allow(raw_pointer_deriving)]
|
||||
#[deriving(Copy, Clone)]
|
||||
pub struct UntrustedNodeAddress(pub *const c_void);
|
||||
|
||||
pub struct NewLayoutInfo {
|
||||
pub old_pipeline_id: PipelineId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue