Bug 1557721 - Remove unneeded return statement. r=kvark

[wrupdater] From https://github.com/servo/webrender/pull/3667

Differential Revision: https://phabricator.services.mozilla.com/D34159

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Bruce Mitchener 2019-06-07 16:15:55 +00:00
Родитель 2f870d3a3e
Коммит 5083295c77
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -63,13 +63,13 @@ pub(in crate) struct AsyncScreenshotGrabber {
impl Default for AsyncScreenshotGrabber {
fn default() -> Self {
return AsyncScreenshotGrabber {
AsyncScreenshotGrabber {
scaling_textures: Vec::new(),
available_pbos: Vec::new(),
awaiting_readback: HashMap::new(),
next_pbo_handle: 1,
mode: AsyncScreenshotGrabberMode::ProfilerScreenshots,
};
}
}
}

Просмотреть файл

@ -680,7 +680,7 @@ impl TextureCache {
}
pub fn requires_frame_build(&self) -> bool {
return self.require_frame_build;
self.require_frame_build
}
/// Called at the beginning of each frame.

Просмотреть файл

@ -54,7 +54,7 @@ impl MallocSizeOfOps {
// larger than the required alignment, but small enough that it is
// always in the first page of memory and therefore not a legitimate
// address.
return ptr as *const usize as usize <= 256;
ptr as *const usize as usize <= 256
}
/// Call `size_of_op` on `ptr`, first checking that the allocation isn't