зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2f870d3a3e
Коммит
5083295c77
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче