From 40996ec96b20ca724f3201540723d1bd68e7b6e8 Mon Sep 17 00:00:00 2001 From: Arunkumar Mourougappane Date: Fri, 9 Aug 2024 16:51:42 -0500 Subject: [PATCH] Address clippy actions - update clippy actions - Fix clippy issues --- .github/workflows/rust-clippy.yml | 6 ------ src/weather_data/weather_point.rs | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 39171fe..da06abc 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -47,9 +47,3 @@ jobs: --all-features --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v3 - with: - sarif_file: rust-clippy-results.sarif - wait-for-processing: true diff --git a/src/weather_data/weather_point.rs b/src/weather_data/weather_point.rs index a2cc71a..e2a2aa7 100644 --- a/src/weather_data/weather_point.rs +++ b/src/weather_data/weather_point.rs @@ -546,7 +546,7 @@ impl WeatherData { }; let timezone_tz: chrono_tz::Tz = match Tz::from_str(&timezone_abbr) { - Ok(timezone_tz) => timezone_tz.into(), + Ok(timezone_tz) => timezone_tz, Err(_) => return Err(WeatherDataError::DatapointParseError), };