mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
style: Fix Servo build.
This commit is contained in:
parent
390d03da70
commit
aa03bf2e19
4 changed files with 27 additions and 14 deletions
|
@ -71,6 +71,14 @@ impl SharedRwLock {
|
|||
}
|
||||
}
|
||||
|
||||
/// Create a new global shared lock (servo).
|
||||
#[cfg(feature = "servo")]
|
||||
pub fn new_leaked() -> Self {
|
||||
SharedRwLock {
|
||||
arc: Arc::new_leaked(RwLock::new(())),
|
||||
}
|
||||
}
|
||||
|
||||
/// Create a new global shared lock (gecko).
|
||||
#[cfg(feature = "gecko")]
|
||||
pub fn new_leaked() -> Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue