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)),