Skip to content

Commit

Permalink
Clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
asimon-1 committed Nov 21, 2024
1 parent b3ef93e commit d296a81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/common/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ fn get_release(beta: bool) -> Result<Release> {
break;
}
}
if beta && beta_release.is_some() {
Ok(beta_release.unwrap())
} else if !beta && stable_release.is_some() {
Ok(stable_release.unwrap())
if beta {
beta_release.ok_or(anyhow!(
"The specified beta release was not found in the GitHub JSON response!"
))
} else {
Err(anyhow!(
"The specified release was not found in the GitHub JSON response!"
stable_release.ok_or(anyhow!(
"The specified stable release was not found in the GitHub JSON response!"
))
}
}
Expand Down
1 change: 1 addition & 0 deletions src/training/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ unsafe fn handle_layout_arc_malloc(ctx: &mut skyline::hooks::InlineCtx) {
.iter()
.enumerate()
.for_each(|(idx, byte)| LAYOUT_ARC[idx] = *byte);
#[allow(static_mut_refs)]
inject_arc = LAYOUT_ARC.as_ptr();
}

Expand Down

0 comments on commit d296a81

Please sign in to comment.