Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Commit 707bfb4

Browse files
author
bors-servo
authored
Auto merge of #274 - servo:various, r=jdm
Various improvements. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/274) <!-- Reviewable:end -->
2 parents 28f9fb0 + 741842c commit 707bfb4

File tree

3 files changed

+7
-83
lines changed

3 files changed

+7
-83
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ git = "https://github.com/servo/mozjs"
2727
[dependencies]
2828
lazy_static = "0.2.1"
2929
libc = "0.2"
30-
rustc-serialize = "0.3"
3130
log = "0.3"
3231
heapsize = ">=0.2, <0.4"
3332
num-traits = "0.1.32"

src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ extern crate libc;
2323
extern crate log;
2424
extern crate mozjs_sys;
2525
extern crate num_traits;
26-
extern crate rustc_serialize as serialize;
2726

2827
pub mod jsapi {
2928
use libc::FILE;
@@ -110,3 +109,10 @@ impl<T: Copy + GCMethods<T>> HeapSizeOf for Heap<T> {
110109
}
111110
known_heap_size!(0, JSVal);
112111

112+
impl jsapi::ObjectOpResult {
113+
/// Set this ObjectOpResult to true and return true.
114+
pub fn succeed(&mut self) -> bool {
115+
self.code_ = jsapi::ObjectOpResult_SpecialCodes::OkCode as usize;
116+
true
117+
}
118+
}

src/trace.rs

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)