mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
Fix indentation broken by cargo clippy --fix
... and another clippy warning.
This commit is contained in:
parent
d3b7928b99
commit
82f1789589
4 changed files with 10 additions and 8 deletions
|
@ -42,11 +42,12 @@ impl Default for Settings {
|
|||
enum State {
|
||||
#[default]
|
||||
Stopped,
|
||||
Started { file: File, position: u64 },
|
||||
Started {
|
||||
file: File,
|
||||
position: u64,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct FileSink {
|
||||
settings: Mutex<Settings>,
|
||||
|
|
|
@ -42,11 +42,12 @@ impl Default for Settings {
|
|||
enum State {
|
||||
#[default]
|
||||
Stopped,
|
||||
Started { file: File, position: u64 },
|
||||
Started {
|
||||
file: File,
|
||||
position: u64,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct FileSrc {
|
||||
settings: Mutex<Settings>,
|
||||
|
|
|
@ -229,7 +229,7 @@ fn mcc_payload_item(s: &[u8]) -> IResult<&[u8], Either<u8, &'static [u8]>> {
|
|||
map(tag("Z"), |_| Either::Right([0x00].as_ref())),
|
||||
map(take_while_m_n(2, 2, is_hex_digit), |s: &[u8]| {
|
||||
let hex_to_u8 = |v: u8| match v {
|
||||
v if (b'0'..=b'9').contains(&v) => v - b'0',
|
||||
v if v.is_ascii_digit() => v - b'0',
|
||||
v if (b'A'..=b'F').contains(&v) => 10 + v - b'A',
|
||||
v if (b'a'..=b'f').contains(&v) => 10 + v - b'a',
|
||||
_ => unreachable!(),
|
||||
|
|
|
@ -69,7 +69,7 @@ fn scc_payload_item(s: &[u8]) -> IResult<&[u8], (u8, u8)> {
|
|||
"invalid SCC payload item",
|
||||
map(take_while_m_n(4, 4, is_hex_digit), |s: &[u8]| {
|
||||
let hex_to_u8 = |v: u8| match v {
|
||||
v if (b'0'..=b'9').contains(&v) => v - b'0',
|
||||
v if v.is_ascii_digit() => v - b'0',
|
||||
v if (b'A'..=b'F').contains(&v) => 10 + v - b'A',
|
||||
v if (b'a'..=b'f').contains(&v) => 10 + v - b'a',
|
||||
_ => unreachable!(),
|
||||
|
|
Loading…
Reference in a new issue