Bug 1607697 - Allow excessive precision in debug color constants. r=Gankro
☠☠ backed out by c2dd65b196d3 ☠ ☠
authorNicolas Silva <nsilva@mozilla.com>
Wed, 08 Jan 2020 15:40:35 +0000
changeset 509364 8490fa04e0eec09cbbd6c7b3301af05592d6fd6f
parent 509363 6c1778a36720e182351c6f24666f04e5a481f98b
child 509365 d70cc2bb33f62aab04ee8a5ae5a086bcee5ab974
push id36995
push userapavel@mozilla.com
push dateWed, 08 Jan 2020 21:56:06 +0000
treeherdermozilla-central@374a48ce8690 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGankro
bugs1607697
milestone74.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 1607697 - Allow excessive precision in debug color constants. r=Gankro Addresses a clippy lint. Differential Revision: https://phabricator.services.mozilla.com/D59113
gfx/wr/webrender/src/debug_colors.rs
--- a/gfx/wr/webrender/src/debug_colors.rs
+++ b/gfx/wr/webrender/src/debug_colors.rs
@@ -1,13 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #![allow(dead_code)]
+#![cfg_attr(feature = "cargo-clippy", allow(clippy::excessive_precision))]
 
 use api::ColorF;
 
 // A subset of the standard CSS colors, useful for defining GPU tag colors etc.
 
 pub const INDIGO: ColorF = ColorF { r: 0.294117647059, g: 0.0, b: 0.509803921569, a: 1.0 };
 pub const GOLD: ColorF = ColorF { r: 1.0, g: 0.843137254902, b: 0.0, a: 1.0 };
 pub const FIREBRICK: ColorF = ColorF { r: 0.698039215686, g: 0.133333333333, b: 0.133333333333, a: 1.0 };