Skip to content

Commit

Permalink
chore: run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 6, 2023
1 parent d5bf186 commit 2e6d89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libwayshot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ impl WayshotConnection {
output_info.transform,
None,
)?;
Ok((&frame_copy).try_into()?)
(&frame_copy).try_into()
}

/// Take a screenshot from all of the specified outputs.
Expand Down
2 changes: 1 addition & 1 deletion libwayshot/src/screencopy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl TryFrom<&FrameCopy> for RgbaImage {
fn try_from(value: &FrameCopy) -> Result<Self> {
Ok(match value.frame_color_type {
ColorType::Rgb8 | ColorType::Rgba8 => {
create_image_buffer(&value.frame_format, &value.frame_mmap)?.into()
create_image_buffer(&value.frame_format, &value.frame_mmap)?
}
_ => return Err(Error::InvalidColor),
})
Expand Down

0 comments on commit 2e6d89f

Please sign in to comment.