Bug 1607697 - Allow excessive precision in debug color constants. r=Gankro
authorNicolas Silva <nsilva@mozilla.com>
Fri, 10 Jan 2020 10:11:56 +0000
changeset 509682 fddd2d637eb0d4a842c465547447616762831043
parent 509681 ffff3331e696c5f6c8ae458a4e50b5a5b184cbcb
child 509683 966cc16c3feb7ec46352e9ecff3fd65a3723ab8f
push id37002
push userccoroiu@mozilla.com
push dateFri, 10 Jan 2020 21:49:10 +0000
treeherdermozilla-central@7fa78b1baf59 [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 };