From e574a9d2dd68bb8d554b9dd2510612e8ee86beb0 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Sun, 6 Oct 2024 17:10:42 +0200 Subject: [PATCH] Update Rust toolchain to 1.81.0 --- rust-toolchain.toml | 2 +- src/reader/stream_reader.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index d9cbf53..2172c05 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.80.0" +channel = "1.81.0" profile = "minimal" components = ["clippy", "rustfmt", "rust-docs"] diff --git a/src/reader/stream_reader.rs b/src/reader/stream_reader.rs index 2cbf2cd..3618f5b 100644 --- a/src/reader/stream_reader.rs +++ b/src/reader/stream_reader.rs @@ -1678,17 +1678,17 @@ impl JsonStreamReader { b'n' => { // Skip the 'n' and instead push the represented char bytes_reader.skip_previous_byte(); - bytes_reader.push_bytes(&[b'\n']); + bytes_reader.push_bytes(b"\n"); } b'r' => { // Skip the 'r' and instead push the represented char bytes_reader.skip_previous_byte(); - bytes_reader.push_bytes(&[b'\r']); + bytes_reader.push_bytes(b"\r"); } b't' => { // Skip the 't' and instead push the represented char bytes_reader.skip_previous_byte(); - bytes_reader.push_bytes(&[b'\t']); + bytes_reader.push_bytes(b"\t"); } b'u' => { // Skip the 'u'