Skip to content

Commit 8399fa5

Browse files
committed
format
1 parent 00c449f commit 8399fa5

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

apps/desktop/src-tauri/src/upload.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,10 @@ pub async fn create_or_get_video(
247247
.ok()
248248
.and_then(|body| serde_json::from_str::<CreateErrorResponse>(body).ok())
249249
&& status == StatusCode::FORBIDDEN
250-
&& error.error == "upgrade_required" {
251-
return Err(AuthedApiError::UpgradeRequired);
252-
}
250+
&& error.error == "upgrade_required"
251+
{
252+
return Err(AuthedApiError::UpgradeRequired);
253+
}
253254

254255
return Err(format!("create_or_get_video/error/{status}: {body:?}").into());
255256
}

crates/enc-ffmpeg/src/video/h264.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,7 @@ impl H264EncoderBuilder {
9999
.video()
100100
.ok()
101101
.and_then(|codec_video| codec_video.formats())
102-
.is_some_and(|mut formats| {
103-
formats.any(|f| f == input_config.pixel_format)
104-
});
102+
.is_some_and(|mut formats| formats.any(|f| f == input_config.pixel_format));
105103

106104
let mut needs_pixel_conversion = false;
107105

crates/scap-ffmpeg/examples/cli.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ pub async fn main() {
6868

6969
let ff_frame = video_frame.as_ffmpeg().unwrap();
7070

71-
ff_frame.width();ff_frame.height();ff_frame.format();
71+
ff_frame.width();
72+
ff_frame.height();
73+
ff_frame.format();
7274
})
7375
.with_stop_with_err_cb(|stream, error| {
7476
(stream, error);

0 commit comments

Comments
 (0)