From 7024079822e23d79cc0c82ea97c1293f50b2e72e Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" Date: Fri, 18 Oct 2024 15:19:57 -0700 Subject: [PATCH] change toolchain to 2024-10-17 --- rust-toolchain.toml | 2 +- src/pipeline/src/etl/processor/timestamp.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 4d6b0593a8..390cb1232a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2024-09-27" +channel = "nightly-2024-10-17" diff --git a/src/pipeline/src/etl/processor/timestamp.rs b/src/pipeline/src/etl/processor/timestamp.rs index 3f9621c19d..18b6711c1d 100644 --- a/src/pipeline/src/etl/processor/timestamp.rs +++ b/src/pipeline/src/etl/processor/timestamp.rs @@ -254,7 +254,7 @@ impl TimestampProcessor { } fn parse_formats(yaml: &yaml_rust::yaml::Yaml) -> Result, Tz)>> { - return match yaml.as_vec() { + match yaml.as_vec() { Some(formats_yaml) => { let mut formats = Vec::with_capacity(formats_yaml.len()); for v in formats_yaml { @@ -286,7 +286,7 @@ fn parse_formats(yaml: &yaml_rust::yaml::Yaml) -> Result, Tz)>> s: format!("{yaml:?}"), } .fail(), - }; + } } impl TryFrom<&yaml_rust::yaml::Hash> for TimestampProcessorBuilder {