From 6105ef02c9fa0ddfad4619eb7996bfe9f7deeb2e Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Sun, 28 Feb 2021 16:41:14 +0100 Subject: [PATCH] formatting --- src/quirks/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/quirks/mod.rs b/src/quirks/mod.rs index 2297826..901da8f 100644 --- a/src/quirks/mod.rs +++ b/src/quirks/mod.rs @@ -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()) {