Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Refactor empty check to use is_empty()

Richie McIlroy3e2426772bea
diff --git a/crates/camera-ffmpeg/src/windows.rs b/crates/camera-ffmpeg/src/windows.rs
index ba5a59ba4..cfcb075f8 100644
--- a/crates/camera-ffmpeg/src/windows.rs
+++ b/crates/camera-ffmpeg/src/windows.rs
@@ -50,7 +50,7 @@ impl CapturedFrameExt for CapturedFrame {
let bytes = native.bytes().map_err(AsFFmpegError::FailedToGetBytes)?;
- if bytes.len() == 0 {
+ if bytes.is_empty() {
return Err(AsFFmpegError::Empty);
}