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)]