From 67a68123798c7bc7f8b61e7d0185a099c70b51ac Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Wed, 28 Sep 2022 09:03:45 -0700 Subject: [PATCH] fix clippy errors These must have popped up with a new version of Rust since last commits. --- src/client/mod.rs | 2 +- src/codec/aac.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/mod.rs b/src/client/mod.rs index a490e59..e105ee6 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -1614,7 +1614,7 @@ impl Session { "Connecting via TCP to known-broken RTSP server {:?}. \ See . \ Consider using UDP instead!", - &*t + t ); } } diff --git a/src/codec/aac.rs b/src/codec/aac.rs index f034a69..4d48c05 100644 --- a/src/codec/aac.rs +++ b/src/codec/aac.rs @@ -196,7 +196,7 @@ fn set_length(len: usize, data: &mut [u8]) -> Result { Ok(4) } else { // BaseDescriptor sets a maximum length of 2**28 - 1. - return Err(format!("length {} too long", len)); + Err(format!("length {} too long", len)) } }