From 9144989eb02aee3125d20a20ad27fd79fa1e6914 Mon Sep 17 00:00:00 2001 From: znpra Date: Sat, 22 Jul 2023 09:15:44 -0400 Subject: [PATCH] switch from nightly to stable --- rust-toolchain | 1 - src/gd.rs | 7 +++++-- src/main.rs | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 rust-toolchain diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index bf867e0..0000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -nightly diff --git a/src/gd.rs b/src/gd.rs index 8242cd2..4abeed0 100644 --- a/src/gd.rs +++ b/src/gd.rs @@ -111,8 +111,11 @@ impl Song { .send()? .text()? .split("~|~") - .array_chunks() - .try_for_each(|[id, value]| -> Result<(), SongRequestError> { + .chunks(2) + .into_iter() + .try_for_each(|mut chunk| -> Result<(), SongRequestError> { + let id = chunk.next().unwrap(); + let value = chunk.next().unwrap(); out.0[id.parse::()? - 1] = Some(value.into()); Ok(()) }) diff --git a/src/main.rs b/src/main.rs index 2916495..2129b44 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,3 @@ -#![feature(iter_array_chunks)] //#![warn(clippy::all, clippy::pedantic, clippy::nursery)] #![allow(dead_code)]