formatting

This commit is contained in:
Matthias Endler 2021-02-28 16:41:14 +01:00
parent ba1eeed734
commit 6105ef02c9

View file

@ -46,10 +46,9 @@ impl Quirks {
Self { quirks }
}
/// Apply quirks to a given request.
/// Only the first quirk matching regex pattern will be applied.
/// The rest will be discarded for simplicity reasons.
/// This limitation might be lifted in the future.
/// Apply quirks to a given request. Only the first quirk regex pattern
/// matching the URL will be applied. The rest will be discarded for
/// simplicity reasons. This limitation might be lifted in the future.
pub fn apply(&self, request: Request) -> Request {
for quirk in &self.quirks {
if quirk.pattern.is_match(request.url().as_str()) {