Prevent unused result warning in codegen. Always expect success for now.

This commit is contained in:
Glenn Watson 2014-05-05 11:04:05 +10:00
parent b1d0dac50d
commit 71f3f5894e

View file

@ -5341,7 +5341,7 @@ class GlobalGenRoots():
trace = [CGGeneric(string.Template('''impl JSTraceable for ${name} { trace = [CGGeneric(string.Template('''impl JSTraceable for ${name} {
fn trace(&self, tracer: *mut JSTracer) { fn trace(&self, tracer: *mut JSTracer) {
unsafe { unsafe {
self.encode(&mut *tracer); self.encode(&mut *tracer).ok().expect("failed to encode");
} }
} }
} }