Bug 1622256 - Remove unnecessary parentheses producing compiler warning. r=kvark
authorKartikaya Gupta <kgupta@mozilla.com>
Sat, 14 Mar 2020 04:21:23 +0000
changeset 518898 52e8e93527739f94d39b22d422df82e558038d49
parent 518897 415064e7f439b7733ff8b696a6efc55541cdc6e3
child 518899 00aeb92fee68696ef67a4b891dc1711b2068d237
push id37220
push useraiakab@mozilla.com
push dateTue, 17 Mar 2020 05:13:41 +0000
treeherdermozilla-central@17adc9cb1db9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskvark
bugs1622256
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1622256 - Remove unnecessary parentheses producing compiler warning. r=kvark Depends on D66769 Differential Revision: https://phabricator.services.mozilla.com/D66770
gfx/wr/webrender/src/shade.rs
--- a/gfx/wr/webrender/src/shade.rs
+++ b/gfx/wr/webrender/src/shade.rs
@@ -952,17 +952,17 @@ impl Shaders {
             ps_text_run_dual_source,
             ps_split_composite,
             composite_rgba,
             composite_yuv,
         })
     }
 
     fn get_yuv_shader_index(buffer_kind: ImageBufferKind) -> usize {
-        (buffer_kind as usize)
+        buffer_kind as usize
     }
 
     pub fn get_composite_shader(
         &mut self,
         format: CompositeSurfaceFormat,
         buffer_kind: ImageBufferKind,
     ) -> &mut LazilyCompiledShader {
         match format {