From f3b47b157dda09f7f6192d9aa99c64755e9a3f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 14 Jan 2023 18:53:50 +0100 Subject: [PATCH] Small clippy run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ab2a6a6..fafea35 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,8 +40,8 @@ impl<'a> From>>> for Token<'a> { } } -pub static DEFAULT_NS: &'static str = "jabber:client"; -pub static SCANSION_NS: &'static str = "https://matthewwild.co.uk/projects/scansion"; +pub static DEFAULT_NS: &str = "jabber:client"; +pub static SCANSION_NS: &str = "https://matthewwild.co.uk/projects/scansion"; #[derive(Debug, Clone, PartialEq)] pub struct Metadata { @@ -116,6 +116,7 @@ fn allspaces(s: Span) -> IResult { let (s, (pos, _, comments)) = tuple((position, multispace0, opt(comment)))(s)?; let mut s = s; + #[allow(clippy::redundant_pattern_matching)] if let Some(_) = comments { let (j, _) = multispace0(s)?; s = j; @@ -312,8 +313,7 @@ fn parse_send_receive<'a>(tagname: &str, name: String, s: Span<'a>) -> IResult (s, Action::Send(name, elem)), "receives:" => (s, Action::Receive(name, elem)),