fix clippy errors

These must have popped up with a new version of Rust since last commits.
This commit is contained in:
Scott Lamb 2022-09-28 09:03:45 -07:00
parent bc03c61ae3
commit 67a6812379
2 changed files with 2 additions and 2 deletions

View File

@ -1614,7 +1614,7 @@ impl Session<Described> {
"Connecting via TCP to known-broken RTSP server {:?}. \
See <https://github.com/scottlamb/retina/issues/17>. \
Consider using UDP instead!",
&*t
t
);
}
}

View File

@ -196,7 +196,7 @@ fn set_length(len: usize, data: &mut [u8]) -> Result<usize, String> {
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))
}
}