1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-23 01:54:22 +00:00

Apply clippy::single_char_pattern suggestion

This commit is contained in:
Steffo 2023-04-11 17:11:53 +02:00
parent 4877c8bf8c
commit 390fe583db
Signed by: steffo
GPG key ID: 2A24051445686895
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ pub async fn main() {
let known_set_codes: String = env::var("DATA_DRAGON_SET_CODES") let known_set_codes: String = env::var("DATA_DRAGON_SET_CODES")
.expect("DATA_DRAGON_SET_CODES to be set"); .expect("DATA_DRAGON_SET_CODES to be set");
let known_set_codes: Vec<&str> = known_set_codes let known_set_codes: Vec<&str> = known_set_codes
.rsplit(",") .rsplit(',')
.collect(); .collect();
debug!("Detected set codes: {:?}", &known_set_codes); debug!("Detected set codes: {:?}", &known_set_codes);

View file

@ -23,7 +23,7 @@ pub async fn main() {
let known_set_codes: String = env::var("DATA_DRAGON_SET_CODES") let known_set_codes: String = env::var("DATA_DRAGON_SET_CODES")
.expect("DATA_DRAGON_SET_CODES to be set"); .expect("DATA_DRAGON_SET_CODES to be set");
let known_set_codes: Vec<&str> = known_set_codes let known_set_codes: Vec<&str> = known_set_codes
.rsplit(",") .rsplit(',')
.collect(); .collect();
debug!("Detected set codes: {:?}", &known_set_codes); debug!("Detected set codes: {:?}", &known_set_codes);