style: rustfmt (incl. one pre-existing long line in serve_recording)

This commit is contained in:
iamdoubz
2026-07-07 00:30:00 -05:00
parent 59742e4fdf
commit bd97032550
+4 -1
View File
@@ -1740,7 +1740,10 @@ pub(crate) fn serve_recording(
if let Some((start, end)) = parse_byte_range(range, total) {
return base()
.status(StatusCode::PARTIAL_CONTENT)
.header(header::CONTENT_RANGE, format!("bytes {start}-{end}/{total}"))
.header(
header::CONTENT_RANGE,
format!("bytes {start}-{end}/{total}"),
)
.header(header::CONTENT_LENGTH, (end - start + 1).to_string())
.body(plain[start..=end].to_vec())
.unwrap_or_else(|_| fail(StatusCode::INTERNAL_SERVER_ERROR));