Skip to content

Commit

Permalink
Fix feature = "cargo-clippy" deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 committed Feb 28, 2024
1 parent 0068b04 commit 3e6724c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gfx/wr/webrender/src/debug_colors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#![allow(dead_code)]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::excessive_precision))]
#![cfg_attr(clippy, allow(clippy::excessive_precision))]

use api::ColorF;

Expand Down
2 changes: 1 addition & 1 deletion gfx/wr/webrender/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ doesn't only contain trivial geometry, it can also store another
[stacking_contexts]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
*/

#![cfg_attr(feature = "cargo-clippy", allow(clippy::unreadable_literal, clippy::new_without_default, clippy::too_many_arguments))]
#![cfg_attr(clippy, allow(clippy::unreadable_literal, clippy::new_without_default, clippy::too_many_arguments))]


// Cribbed from the |matches| crate, for simplicity.
Expand Down
2 changes: 1 addition & 1 deletion gfx/wr/webrender_api/src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Ord for PremultipliedColorF {
}
}

#[cfg_attr(feature = "cargo-clippy", allow(clippy::derive_hash_xor_eq))]
#[cfg_attr(clippy, allow(clippy::derive_hash_xor_eq))]
impl Hash for PremultipliedColorF {
fn hash<H: Hasher>(&self, state: &mut H) {
// Note: this is inconsistent with the Eq impl for -0.0 (don't care).
Expand Down
2 changes: 1 addition & 1 deletion gfx/wr/webrender_api/src/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ impl Default for GlyphInstance {

impl Eq for GlyphInstance {}

#[cfg_attr(feature = "cargo-clippy", allow(clippy::derive_hash_xor_eq))]
#[cfg_attr(clippy, allow(clippy::derive_hash_xor_eq))]
impl Hash for GlyphInstance {
fn hash<H: Hasher>(&self, state: &mut H) {
// Note: this is inconsistent with the Eq impl for -0.0 (don't care).
Expand Down
4 changes: 2 additions & 2 deletions gfx/wr/webrender_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//! there.
#![cfg_attr(feature = "nightly", feature(nonzero))]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::float_cmp, clippy::too_many_arguments))]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::unreadable_literal, clippy::new_without_default))]
#![cfg_attr(clippy, allow(clippy::float_cmp, clippy::too_many_arguments))]
#![cfg_attr(clippy, allow(clippy::unreadable_literal, clippy::new_without_default))]

pub extern crate crossbeam_channel;
pub extern crate euclid;
Expand Down

0 comments on commit 3e6724c

Please sign in to comment.