mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
servo: Fixed some compile errors in servo
Source-Repo: https://github.com/servo/servo Source-Revision: 56c1cc5407081d93309adc65687dca7abe09690b
This commit is contained in:
parent
030339717a
commit
25dc44b25c
@ -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…
Reference in New Issue
Block a user