mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-02-23 19:42:30 -05:00
cargo fmt
(I keep forgetting that I've enabled cargo fmt checking on this repo.)
This commit is contained in:
parent
27395ecd4e
commit
900cb927f3
@ -1930,12 +1930,16 @@ impl http_serve::Entity for File {
|
||||
}
|
||||
} else if self.0.type_ == Type::InitSegment {
|
||||
// FileBuilder::build() should have failed if there were no video_sample_entries.
|
||||
let ent = self.0.video_sample_entries.first().expect("no video_sample_entries");
|
||||
let ent = self
|
||||
.0
|
||||
.video_sample_entries
|
||||
.first()
|
||||
.expect("no video_sample_entries");
|
||||
let aspect = ent.aspect();
|
||||
hdrs.insert("X-Aspect",
|
||||
HeaderValue::try_from(
|
||||
format!("{}:{}", aspect.numer(), aspect.denom())
|
||||
).expect("no invalid chars in X-Aspect format")
|
||||
hdrs.insert(
|
||||
"X-Aspect",
|
||||
HeaderValue::try_from(format!("{}:{}", aspect.numer(), aspect.denom()))
|
||||
.expect("no invalid chars in X-Aspect format"),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user