From 202696fd84cc237d44fa4cdb490a145cf170a5fe Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Mon, 6 May 2024 00:03:49 -0700 Subject: [PATCH] chore: change `rustfmt_skip` for clippy https://github.com/rust-lang/rust/issues/124735#issuecomment-2094818939 --- riven/src/consts/champion.rs | 2 +- riven/src/consts/game_mode.rs | 2 +- riven/src/consts/game_type.rs | 2 +- riven/src/consts/map.rs | 2 +- riven/src/consts/queue.rs | 2 +- riven/src/consts/queue_type.rs | 2 +- riven/src/consts/route.rs | 2 +- riven/src/consts/season.rs | 2 +- riven/src/endpoints.rs | 2 +- riven/src/lib.rs | 2 +- riven/src/meta.rs | 2 +- riven/src/models.rs | 2 +- riven/srcgen/dotUtils.js | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/riven/src/consts/champion.rs b/riven/src/consts/champion.rs index b2c2da0..3bf6000 100644 --- a/riven/src/consts/champion.rs +++ b/riven/src/consts/champion.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/game_mode.rs b/riven/src/consts/game_mode.rs index 96edb07..8981ca9 100644 --- a/riven/src/consts/game_mode.rs +++ b/riven/src/consts/game_mode.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/game_type.rs b/riven/src/consts/game_type.rs index fc2ba0f..dc08e33 100644 --- a/riven/src/consts/game_type.rs +++ b/riven/src/consts/game_type.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/map.rs b/riven/src/consts/map.rs index 36230d0..56982a8 100644 --- a/riven/src/consts/map.rs +++ b/riven/src/consts/map.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/queue.rs b/riven/src/consts/queue.rs index 06f9297..ad7705d 100644 --- a/riven/src/consts/queue.rs +++ b/riven/src/consts/queue.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/queue_type.rs b/riven/src/consts/queue_type.rs index 90a878d..bcff970 100644 --- a/riven/src/consts/queue_type.rs +++ b/riven/src/consts/queue_type.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/route.rs b/riven/src/consts/route.rs index 20e708b..9e61c21 100644 --- a/riven/src/consts/route.rs +++ b/riven/src/consts/route.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/season.rs b/riven/src/consts/season.rs index 804bb8a..e0f11cb 100644 --- a/riven/src/consts/season.rs +++ b/riven/src/consts/season.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index 6ce7695..def4cdd 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/lib.rs b/riven/src/lib.rs index 58625ec..f4ae13b 100644 --- a/riven/src/lib.rs +++ b/riven/src/lib.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/meta.rs b/riven/src/meta.rs index 4615430..e40cecc 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/models.rs b/riven/src/models.rs index 899dd6f..335db03 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -1,4 +1,4 @@ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/srcgen/dotUtils.js b/riven/srcgen/dotUtils.js index 47e6c25..2f93895 100644 --- a/riven/srcgen/dotUtils.js +++ b/riven/srcgen/dotUtils.js @@ -28,7 +28,7 @@ Array.prototype.sortBy = function(lambda) { function preamble() { return `\ -#![cfg_attr(rustfmt, rustfmt_skip)] +#![cfg_attr(any(), rustfmt::skip)] /////////////////////////////////////////////// // // // ! //