From 541ec9762c50556866abad3ace6b59df9a817662 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Tue, 29 Oct 2019 15:38:46 -0700 Subject: [PATCH] fixup! fix endpoint.rs indentation --- src/endpoints.rs | 6 +++--- srcgen/endpoints.rs.dt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/endpoints.rs b/src/endpoints.rs index 44af908..a969ed9 100644 --- a/src/endpoints.rs +++ b/src/endpoints.rs @@ -192,7 +192,7 @@ impl<'a> LeagueExpV4<'a> { pub fn get_league_entries(&self, region: Region, division: crate::consts::Division, tier: crate::consts::Tier, queue: crate::consts::QueueType, page: Option) -> impl Future>>> + 'a { - let mut query_params = Serializer::new(String::new()); + let mut query_params = Serializer::new(String::new()); if let Some(page) = page { query_params.append_pair("page", &*page.to_string()); }; let query_string = query_params.finish(); let path_string = format!("/lol/league-exp/v4/entries/{}/{}/{}", division, tier, queue); @@ -246,7 +246,7 @@ impl<'a> LeagueV4<'a> { pub fn get_league_entries(&self, region: Region, queue: crate::consts::QueueType, tier: crate::consts::Tier, division: crate::consts::Division, page: Option) -> impl Future>>> + 'a { - let mut query_params = Serializer::new(String::new()); + let mut query_params = Serializer::new(String::new()); if let Some(page) = page { query_params.append_pair("page", &*page.to_string()); }; let query_string = query_params.finish(); let path_string = format!("/lol/league/v4/entries/{}/{}/{}", queue, tier, division); @@ -386,7 +386,7 @@ impl<'a> MatchV4<'a> { pub fn get_matchlist(&self, region: Region, encrypted_account_id: &str, champion: Option>, queue: Option>, season: Option>, end_time: Option, begin_time: Option, end_index: Option, begin_index: Option) -> impl Future>> + 'a { - let mut query_params = Serializer::new(String::new()); + let mut query_params = Serializer::new(String::new()); if let Some(champion) = champion { query_params.extend_pairs(champion.iter().map(|w| ("champion", w.to_string()))); }; if let Some(queue) = queue { query_params.extend_pairs(queue.iter().map(|w| ("queue", w.to_string()))); }; if let Some(season) = season { query_params.extend_pairs(season.iter().map(|w| ("season", w.to_string()))); }; diff --git a/srcgen/endpoints.rs.dt b/srcgen/endpoints.rs.dt index 6de661b..d9d114e 100644 --- a/srcgen/endpoints.rs.dt +++ b/srcgen/endpoints.rs.dt @@ -135,7 +135,7 @@ impl<'a> {{= endpoint }}<'a> { -> impl Future>> + 'a { {{? queryParams.length }} - let mut query_params = Serializer::new(String::new()); + let mut query_params = Serializer::new(String::new()); {{ for (let queryParam of queryParams) {