cargo fmt

(I keep forgetting that I've enabled cargo fmt checking on this repo.)
This commit is contained in:
Scott Lamb 2021-08-12 13:42:07 -07:00
parent 27395ecd4e
commit 900cb927f3

View File

@ -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"),
);
}
}