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

Address some issues found by rust-clippy. #202

Merged
merged 4 commits into from Feb 26, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Remove superfluous 'return's.

  • Loading branch information
frewsxcv committed Feb 26, 2016
commit ddbeeed1ce919e98b7d7ef1dd76775786e17957a
@@ -212,7 +212,7 @@ impl PackedVertexForQuad {
muv: &RectUv<DevicePixel>,
color_mode: PackedVertexColorMode)
-> PackedVertexForQuad {
return PackedVertexForQuad {
PackedVertexForQuad {
x: position.origin.x,
y: position.origin.y,
width: position.size.width,
@@ -244,7 +244,7 @@ impl PackedVertexForQuad {
PackedVertexColorMode::Gradient => 0x00,
PackedVertexColorMode::BorderCorner => 0x80,
},
};
}
}
}

@@ -57,7 +57,7 @@ impl RenderBackend {
device_pixel_ratio,
enable_aa);

let backend = RenderBackend {
RenderBackend {
thread_pool: thread_pool,
api_rx: api_rx,
result_tx: result_tx,
@@ -70,9 +70,7 @@ impl RenderBackend {
webrender_context_handle: webrender_context_handle,
webgl_contexts: HashMap::new(),
current_bound_webgl_context_id: None,
};

backend
}
}

pub fn run(&mut self) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.