diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-03-27 19:49:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 17:49:25 +0000 |
commit | 784330797d947ec2ff4eb97a7325ac77f3a79e4d (patch) | |
tree | b258828cae62dbbb8917e5d3f3d3cbbf28634e73 /src-tauri/src/github/release_notes.rs | |
parent | 7d5e7b5b6b83ba9ab80f9be984c0d455b51b6502 (diff) | |
download | FlightCore-784330797d947ec2ff4eb97a7325ac77f3a79e4d.tar.gz FlightCore-784330797d947ec2ff4eb97a7325ac77f3a79e4d.zip |
fix: Various clippy fixes (#243)
* fix: Remove redundant return
* fix: Remove unnecessary borrow
* fix: Remove unnecessary import
* fix: Use char for single character replacement
instead of string
* fix: Iterate over values directly
instead of key-value pair
* fix: Remove unnecessary let binding
* fix: Remove unnecessary return statement
* fix: Use char for single character replacement
instead of string
* refactor: Use struct short hand initialization
Diffstat (limited to 'src-tauri/src/github/release_notes.rs')
-rw-r--r-- | src-tauri/src/github/release_notes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/github/release_notes.rs b/src-tauri/src/github/release_notes.rs index edba5761..b45442e0 100644 --- a/src-tauri/src/github/release_notes.rs +++ b/src-tauri/src/github/release_notes.rs @@ -100,5 +100,5 @@ pub async fn get_northstar_release_notes() -> Result<Vec<ReleaseInfo>, String> { serde_json::from_str(&res).expect("JSON was not well-formatted"); log::info!("Done checking GitHub API"); - return Ok(release_info_vector); + Ok(release_info_vector) } |