fix clippy errors
These must have popped up with a new version of Rust since last commits.
This commit is contained in:
parent
bc03c61ae3
commit
67a6812379
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user