From e1b93b24ad057ac294904770772064f17ea6be68 Mon Sep 17 00:00:00 2001 From: Ian Hobson Date: Fri, 12 May 2023 16:52:06 +0200 Subject: [PATCH] Run cargo format --- src/cue.rs | 5 +++-- src/fmt.rs | 36 ++++++++++++++++-------------------- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/src/cue.rs b/src/cue.rs index 98651b5..cb06904 100644 --- a/src/cue.rs +++ b/src/cue.rs @@ -1,6 +1,7 @@ #![allow(dead_code)] -use super::fourcc::{FourCC,ReadFourCC, WriteFourCC, LABL_SIG, NOTE_SIG, - ADTL_SIG, LTXT_SIG, DATA_SIG}; +use super::fourcc::{ + FourCC, ReadFourCC, WriteFourCC, ADTL_SIG, DATA_SIG, LABL_SIG, LTXT_SIG, NOTE_SIG, +}; use super::list_form::collect_list_form; diff --git a/src/fmt.rs b/src/fmt.rs index e72a89f..2e588c7 100644 --- a/src/fmt.rs +++ b/src/fmt.rs @@ -261,28 +261,24 @@ impl WaveFmt { }); let result: (u16, Option) = match channel_bitmap { - ch if bits_per_sample != container_bits_per_sample => { - ( - 0xFFFE, - Some(WaveFmtExtended { - valid_bits_per_sample: bits_per_sample, - channel_mask: ch, - type_guid: UUID_PCM, - }), - ) - } + ch if bits_per_sample != container_bits_per_sample => ( + 0xFFFE, + Some(WaveFmtExtended { + valid_bits_per_sample: bits_per_sample, + channel_mask: ch, + type_guid: UUID_PCM, + }), + ), 0b0100 => (0x0001, None), 0b0011 => (0x0001, None), - ch => { - ( - 0xFFFE, - Some(WaveFmtExtended { - valid_bits_per_sample: bits_per_sample, - channel_mask: ch, - type_guid: UUID_PCM, - }), - ) - } + ch => ( + 0xFFFE, + Some(WaveFmtExtended { + valid_bits_per_sample: bits_per_sample, + channel_mask: ch, + type_guid: UUID_PCM, + }), + ), }; let (tag, extformat) = result;