mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
Prevent unused result warning in codegen. Always expect success for now.
This commit is contained in:
parent
b1d0dac50d
commit
71f3f5894e
1 changed files with 1 additions and 1 deletions
|
@ -5341,7 +5341,7 @@ class GlobalGenRoots():
|
|||
trace = [CGGeneric(string.Template('''impl JSTraceable for ${name} {
|
||||
fn trace(&self, tracer: *mut JSTracer) {
|
||||
unsafe {
|
||||
self.encode(&mut *tracer);
|
||||
self.encode(&mut *tracer).ok().expect("failed to encode");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue