fix via formatting

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-23 04:49:57 -06:00
parent 35806a2058
commit dc619349d4
No known key found for this signature in database

View file

@ -108,8 +108,10 @@ impl<S> FromRequestParts<S> for IncomingInfo {
.get_all("via")
.into_iter()
.fold(String::new(), |mut acc, v| {
if !acc.is_empty() {
acc.push_str(", ");
}
acc.push_str(v.to_str().unwrap_or_default());
acc.push_str(", ");
acc
}),
})