Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Use inline format string for error message

Richie McIlroyf32226fa861a
diff --git a/crates/video-decode/src/avassetreader.rs b/crates/video-decode/src/avassetreader.rs
index d7e4d1e48..8471701bb 100644
--- a/crates/video-decode/src/avassetreader.rs
+++ b/crates/video-decode/src/avassetreader.rs
@@ -171,8 +171,7 @@ pub fn pixel_to_pixel_format(pixel: avformat::Pixel) -> Result<cv::PixelFormat,
"Unhandled pixel format encountered - no mapping to cv::PixelFormat available"
);
Err(format!(
- "Unsupported pixel format: {:?}. Supported formats: NV12, YUV420P, RGBA, BGRA",
- other
+ "Unsupported pixel format: {other:?}. Supported formats: NV12, YUV420P, RGBA, BGRA"
))
}
}