Skip to content

Commit 2204f18

Browse files
Charlie-Zhengralfbiedert
authored andcommitted
Run cargo fmt
1 parent 0223e64 commit 2204f18

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

openh264-sys2/build.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ fn try_compile_nasm(cc_build_command: &mut Build, root: &str) {
224224
let target = Target::from_env();
225225

226226
let Some(config) = NasmConfiguration::find(target) else {
227-
println!(
228-
"No NASM configuration found for target, not using any assembly.\nTarget: {target:?}"
229-
);
227+
println!("No NASM configuration found for target, not using any assembly.\nTarget: {target:?}");
230228
return;
231229
};
232230

openh264/src/decoder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ impl Decoder {
444444
let mut buffer_info = SBufferInfo::default();
445445

446446
unsafe {
447-
self.raw_api().flush_frame(from_mut(&mut dst).cast(), &raw mut buffer_info).ok()?;
447+
self.raw_api()
448+
.flush_frame(from_mut(&mut dst).cast(), &raw mut buffer_info)
449+
.ok()?;
448450
Ok((dst, buffer_info))
449451
}
450452
}

openh264/src/encoder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,9 @@ impl Encoder {
696696
};
697697

698698
unsafe {
699-
self.raw_api.encode_frame(&raw const source, &raw mut self.bit_stream_info).ok()?;
699+
self.raw_api
700+
.encode_frame(&raw const source, &raw mut self.bit_stream_info)
701+
.ok()?;
700702
}
701703

702704
Ok(EncodedBitStream {

0 commit comments

Comments
 (0)