From 88b22a9248d3cfa072e6a9342f07ffc5117e59d9 Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Sat, 1 Jul 2023 19:52:04 +1200 Subject: [PATCH] fix a few clippy issues (#9578) # Description A couple clippy fixes # User-Facing Changes # Tests + Formatting # After Submitting --- crates/nu-protocol/src/value/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-protocol/src/value/mod.rs b/crates/nu-protocol/src/value/mod.rs index f8b4cd37c94d..0303a2b0bfb2 100644 --- a/crates/nu-protocol/src/value/mod.rs +++ b/crates/nu-protocol/src/value/mod.rs @@ -3918,7 +3918,7 @@ mod tests { // We need to cut the humanized part off for tests to work, because // it is relative to current time. - let formatted = string.split("(").next().unwrap(); + let formatted = string.split('(').next().unwrap(); assert_eq!("Tue, 30 Dec 1969 13:42:23 +0000 ", formatted); } @@ -3935,7 +3935,7 @@ mod tests { // We need to cut the humanized part off for tests to work, because // it is relative to current time. - let formatted = string.split(" ").next().unwrap(); + let formatted = string.split(' ').next().unwrap(); assert_eq!("-0316-02-11T06:13:20+00:00", formatted); } }