From 33ef29803981b1132d82961a4a04e9e27b011337 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Sat, 20 Jan 2024 19:40:41 -0800 Subject: [PATCH] Add `rustfmt_skip` to autogen preambles --- riven/src/consts/champion.rs | 1 + riven/src/consts/game_mode.rs | 1 + riven/src/consts/game_type.rs | 1 + riven/src/consts/map.rs | 1 + riven/src/consts/queue.rs | 1 + riven/src/consts/queue_type.rs | 1 + riven/src/consts/route.rs | 1 + riven/src/consts/season.rs | 1 + riven/src/endpoints.rs | 1 + riven/src/lib.rs | 3 ++- riven/src/meta.rs | 1 + riven/src/models.rs | 1 + riven/srcgen/dotUtils.js | 1 + 13 files changed, 14 insertions(+), 1 deletion(-) diff --git a/riven/src/consts/champion.rs b/riven/src/consts/champion.rs index 59bca22..b2c2da0 100644 --- a/riven/src/consts/champion.rs +++ b/riven/src/consts/champion.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/game_mode.rs b/riven/src/consts/game_mode.rs index 1a43324..10b8cd8 100644 --- a/riven/src/consts/game_mode.rs +++ b/riven/src/consts/game_mode.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/game_type.rs b/riven/src/consts/game_type.rs index 82263d9..fc2ba0f 100644 --- a/riven/src/consts/game_type.rs +++ b/riven/src/consts/game_type.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/map.rs b/riven/src/consts/map.rs index 0d9e638..36230d0 100644 --- a/riven/src/consts/map.rs +++ b/riven/src/consts/map.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/queue.rs b/riven/src/consts/queue.rs index 375b4bd..0109913 100644 --- a/riven/src/consts/queue.rs +++ b/riven/src/consts/queue.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/queue_type.rs b/riven/src/consts/queue_type.rs index 8f012bf..9b18e18 100644 --- a/riven/src/consts/queue_type.rs +++ b/riven/src/consts/queue_type.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/route.rs b/riven/src/consts/route.rs index 0069694..20e708b 100644 --- a/riven/src/consts/route.rs +++ b/riven/src/consts/route.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/consts/season.rs b/riven/src/consts/season.rs index 634f6d0..804bb8a 100644 --- a/riven/src/consts/season.rs +++ b/riven/src/consts/season.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/endpoints.rs b/riven/src/endpoints.rs index 21dac80..25d1b37 100644 --- a/riven/src/endpoints.rs +++ b/riven/src/endpoints.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/lib.rs b/riven/src/lib.rs index a226180..774a0c3 100644 --- a/riven/src/lib.rs +++ b/riven/src/lib.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // @@ -83,7 +84,7 @@ //! ``` //! The [`RiotApi` struct documentation](https://docs.rs/riven/latest/riven/struct.RiotApi.html) //! contains additional usage information. The [tests](https://github.com/MingweiSamuel/Riven/tree/v/2.x.x/riven/tests) -//! and [example proxy](https://github.com/MingweiSamuel/Riven/tree/v/2.x.x/example/proxy) +//! and [example proxy](https://github.com/MingweiSamuel/Riven/tree/v/2.x.x/riven/examples/proxy) //! provide more example usage. //! //! ## Feature Flags diff --git a/riven/src/meta.rs b/riven/src/meta.rs index afe8728..4511f13 100644 --- a/riven/src/meta.rs +++ b/riven/src/meta.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/src/models.rs b/riven/src/models.rs index 787e331..8e5e5cd 100644 --- a/riven/src/models.rs +++ b/riven/src/models.rs @@ -1,3 +1,4 @@ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! // diff --git a/riven/srcgen/dotUtils.js b/riven/srcgen/dotUtils.js index 28ab2bb..33ef788 100644 --- a/riven/srcgen/dotUtils.js +++ b/riven/srcgen/dotUtils.js @@ -28,6 +28,7 @@ Array.prototype.sortBy = function(lambda) { function preamble() { return `\ +#![cfg_attr(rustfmt, rustfmt_skip)] /////////////////////////////////////////////// // // // ! //