From 390fe583db39ce3c9b18d6a71bf483148b3ec2c8 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 11 Apr 2023 17:11:53 +0200 Subject: [PATCH] Apply `clippy::single_char_pattern` suggestion --- src/discord/main.rs | 2 +- src/telegram/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/discord/main.rs b/src/discord/main.rs index c323bd8..e140bba 100644 --- a/src/discord/main.rs +++ b/src/discord/main.rs @@ -22,7 +22,7 @@ pub async fn main() { let known_set_codes: String = env::var("DATA_DRAGON_SET_CODES") .expect("DATA_DRAGON_SET_CODES to be set"); let known_set_codes: Vec<&str> = known_set_codes - .rsplit(",") + .rsplit(',') .collect(); debug!("Detected set codes: {:?}", &known_set_codes); diff --git a/src/telegram/main.rs b/src/telegram/main.rs index 47f9626..5ee565b 100644 --- a/src/telegram/main.rs +++ b/src/telegram/main.rs @@ -23,7 +23,7 @@ pub async fn main() { let known_set_codes: String = env::var("DATA_DRAGON_SET_CODES") .expect("DATA_DRAGON_SET_CODES to be set"); let known_set_codes: Vec<&str> = known_set_codes - .rsplit(",") + .rsplit(',') .collect(); debug!("Detected set codes: {:?}", &known_set_codes);