Skip to content

Commit

Permalink
Address clippy actions
Browse files Browse the repository at this point in the history
- update clippy actions
- Fix clippy issues
  • Loading branch information
arunkumar-mourougappane committed Aug 9, 2024
1 parent 82f1c73 commit 40996ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/weather_data/weather_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};

Expand Down

0 comments on commit 40996ec

Please sign in to comment.