Skip to content

Commit 3e24267

Browse files
committed
Refactor empty check to use is_empty()
1 parent cfd4d08 commit 3e24267

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/camera-ffmpeg/src/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl CapturedFrameExt for CapturedFrame {
5050

5151
let bytes = native.bytes().map_err(AsFFmpegError::FailedToGetBytes)?;
5252

53-
if bytes.len() == 0 {
53+
if bytes.is_empty() {
5454
return Err(AsFFmpegError::Empty);
5555
}
5656

0 commit comments

Comments
 (0)