mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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>
|
||||
};
|
||||
|
||||
resource ScopeResource<T:send,A>(d: ScopeData<T,A>) {
|
||||
unsafe {
|
||||
class ScopeResource<T:send,A> {
|
||||
let d : ScopeData<T,A>;
|
||||
new(d : ScopeData<T,A>) {
|
||||
self.d = d;
|
||||
}
|
||||
drop unsafe {
|
||||
for d.free_list.each { |h| free_handle(h); }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#[license = "MPL"];
|
||||
#[crate_type = "lib"];
|
||||
|
||||
#[warn(no_oldvecs)];
|
||||
|
||||
use std;
|
||||
use sdl;
|
||||
use azure;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue