Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest Rust #435

Merged
merged 10 commits into from May 10, 2013

Remove unused mut.

  • Loading branch information
metajack committed May 10, 2013
commit ea1f9e02b0a65ba2cb32305d0c9552c7037b0c4a
@@ -608,8 +608,8 @@ pub fn WrapNewBindingObject(cx: *JSContext, scope: *JSObject,
mut value: @mut CacheableWrapper,
vp: *mut JSVal) -> bool {
unsafe {
let mut cache = value.get_wrappercache();
let mut obj = cache.get_wrapper();
let cache = value.get_wrappercache();
let obj = cache.get_wrapper();
if obj.is_not_null() /*&& js::GetObjectCompartment(obj) == js::GetObjectCompartment(scope)*/ {
*vp = RUST_OBJECT_TO_JSVAL(obj);
return true;
@@ -65,14 +65,12 @@ impl BlockLayout for FlowContext {
fn with_block_box(&self, callback: &fn(box: RenderBox) -> ()) -> () {
match *self {
BlockFlow(*) => {
let box = self.block().box;
for box.each |&b| {
for self.block().box.each |&b| {
callback(b);
}
},
RootFlow(*) => {
let mut box = self.root().box;
for box.each |&b| {
for self.root().box.each |&b| {
callback(b);
}
},
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.