mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fixed some compile errors in servo
This commit is contained in:
parent
98bfb44d8f
commit
56c1cc5407
2 changed files with 8 additions and 2 deletions
|
@ -63,8 +63,12 @@ type ScopeData<T:send,A> = {
|
||||||
mut first_dirty: Handle<T,A>
|
mut first_dirty: Handle<T,A>
|
||||||
};
|
};
|
||||||
|
|
||||||
resource ScopeResource<T:send,A>(d: ScopeData<T,A>) {
|
class ScopeResource<T:send,A> {
|
||||||
unsafe {
|
let d : ScopeData<T,A>;
|
||||||
|
new(d : ScopeData<T,A>) {
|
||||||
|
self.d = d;
|
||||||
|
}
|
||||||
|
drop unsafe {
|
||||||
for d.free_list.each { |h| free_handle(h); }
|
for d.free_list.each { |h| free_handle(h); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
#[license = "MPL"];
|
#[license = "MPL"];
|
||||||
#[crate_type = "lib"];
|
#[crate_type = "lib"];
|
||||||
|
|
||||||
|
#[warn(no_oldvecs)];
|
||||||
|
|
||||||
use std;
|
use std;
|
||||||
use sdl;
|
use sdl;
|
||||||
use azure;
|
use azure;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue