From d93534a1c21866aea3b9300931fde18d5c2bef9e Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Sun, 1 Aug 2021 08:47:27 +0700 Subject: [PATCH] Rust fmt --- src/rtsp/adpcm.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rtsp/adpcm.rs b/src/rtsp/adpcm.rs index 5eaefca..e7e0282 100644 --- a/src/rtsp/adpcm.rs +++ b/src/rtsp/adpcm.rs @@ -136,9 +136,7 @@ pub(crate) fn adpcm_to_pcm(bytes: &[u8]) -> Result, Error> { // Get predictor state from block header using DVI 4 format. if bytes.len() < 8 { error!("ADPCM Block size is not long enough for header"); - return Err(Error::AdpcmDecoding( - "ADPCM has insufficent block size", - )); + return Err(Error::AdpcmDecoding("ADPCM has insufficent block size")); } let step_output_bytes = &bytes[4..6]; let mut last_output = i16::from_le_bytes(