Skip to content

Commit 1a64f79

Browse files
committed
rustfmt errors fixed
1 parent dd06fe2 commit 1a64f79

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

src/rust/lib_ccxr/src/isdbs/isdbd.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -993,9 +993,9 @@ pub enum CcxStreamMode {
993993
Program = 2,
994994
Asf = 3,
995995
McPoodlesRaw = 4,
996-
Rcwt = 5, // Raw Captions With Time, not used yet.
997-
Myth = 6, // Use the myth loop
998-
Mp4 = 7, // MP4, ISO-
996+
Rcwt = 5, // Raw Captions With Time, not used yet.
997+
Myth = 6, // Use the myth loop
998+
Mp4 = 7, // MP4, ISO-
999999
Wtv = 9,
10001000
Gxf = 11,
10011001
Mkv = 12,
@@ -1013,14 +1013,14 @@ pub enum CcxOutputDateFormat {
10131013
}
10141014

10151015
pub struct CcxEncodersTranscriptFormat {
1016-
show_start_time: i32, // Show start and/or end time.
1017-
show_end_time: i32, // Show start and/or end time.
1018-
show_mode: i32, // Show which mode if available (E.G.: POP, RU1, ...)
1019-
show_cc: i32, // Show which CC channel has been captured.
1016+
show_start_time: i32, // Show start and/or end time.
1017+
show_end_time: i32, // Show start and/or end time.
1018+
show_mode: i32, // Show which mode if available (E.G.: POP, RU1, ...)
1019+
show_cc: i32, // Show which CC channel has been captured.
10201020
relative_timestamp: i32, // Timestamps relative to start of sample or in UTC?
1021-
xds: i32, // Show XDS or not
1022-
use_colors: i32, // Add colors or no colors
1023-
is_final: i32, // Used to determine if these parameters should be changed afterwards.
1021+
xds: i32, // Show XDS or not
1022+
use_colors: i32, // Add colors or no colors
1023+
is_final: i32, // Used to determine if these parameters should be changed afterwards.
10241024
}
10251025

10261026
#[repr(i32)]
@@ -1267,4 +1267,4 @@ pub enum CcxStreamModeEnum {
12671267

12681268
pub struct CcxOptions {
12691269
pub messages_target: i32,
1270-
}
1270+
}

src/rust/lib_ccxr/src/isdbs/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pub mod isdbs;
21
pub mod isdbd;
3-
pub mod tests;
2+
pub mod isdbs;
3+
pub mod tests;

src/rust/lib_ccxr/src/isdbs/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,14 +708,14 @@ mod tests {
708708
timestamp: 0,
709709
refcount: 0,
710710
};
711-
711+
712712
unsafe {
713713
assert_eq!(reserve_buf(&mut text, 100), 0);
714714
assert_eq!(text.len, 128);
715-
715+
716716
assert_eq!(reserve_buf(&mut text, 200), 0);
717717
assert!(text.len >= 328);
718-
718+
719719
let layout = Layout::from_size_align(text.len, 1).unwrap();
720720
dealloc(text.buf as *mut u8, layout);
721721
}

src/rust/lib_ccxr/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pub mod activity;
22
pub mod common;
33
pub mod hardsubx;
4+
pub mod isdbs;
45
pub mod subtitle;
56
pub mod teletext;
67
pub mod time;
78
pub mod util;
8-
pub mod isdbs;

src/rust/src/libccxr_exports/isdb.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
extern crate libc;
22

3-
use lib_ccxr::isdbs::isdbs::*;
43
use lib_ccxr::isdbs::isdbd::*;
4+
use lib_ccxr::isdbs::isdbs::*;
55

6-
use std::os::raw::{c_int, c_long, c_char, c_ulonglong, c_uchar, c_uint, c_void};
7-
use std::ptr;
86
use std::mem;
7+
use std::os::raw::{c_char, c_int, c_long, c_uchar, c_uint, c_ulonglong, c_void};
8+
use std::ptr;
99

1010
#[no_mangle]
1111
pub extern "C" fn ccxr_isdb_set_global_time(dec_ctx: *mut LibCcDecode, timestamp: u64) -> c_int {
1212
unsafe {
1313
let ctx = (*dec_ctx).private_data as *mut ISDBSubContext;
1414
if !ctx.is_null() {
1515
isdb_set_global_time(&mut *ctx, timestamp);
16-
0 // return 0 if everything is CCX_OK
16+
0 // return 0 if everything is CCX_OK
1717
} else {
1818
-1 // return an error code if ctx is null
1919
}
@@ -69,4 +69,4 @@ pub extern "C" fn ccxr_isdbsub_decode(
6969
) -> i32 {
7070
let buf_slice = unsafe { std::slice::from_raw_parts(buf, buf_size) };
7171
isdbsub_decode(unsafe { &mut *dec_ctx }, buf_slice, unsafe { &mut *sub })
72-
}
72+
}

src/rust/src/libccxr_exports/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Provides C-FFI functions that are direct equivalent of functions available in C.
22
3-
pub mod time;
43
pub mod isdb;
4+
pub mod time;
55
use crate::ccx_options;
66
use lib_ccxr::util::log::*;
77
use lib_ccxr::util::{bits::*, levenshtein::*};

0 commit comments

Comments
 (0)