diff --git a/src/offline.rs b/src/offline.rs index 64bd971..e67115c 100644 --- a/src/offline.rs +++ b/src/offline.rs @@ -58,6 +58,8 @@ impl Ingress { Err(anyhow!("Invalid cbor content")) } } + +#[allow(static_mut_refs)] pub fn output_message(json: String, format: &OfflineOutput) -> Result<()> { match format { OfflineOutput::Json => println!("{json}"), diff --git a/src/token.rs b/src/token.rs index b7d73ac..984540b 100644 --- a/src/token.rs +++ b/src/token.rs @@ -200,7 +200,7 @@ pub fn error2(err: E, span: Span) -> ParserError { } } -impl<'input> Iterator for Tokenizer<'input> { +impl Iterator for Tokenizer<'_> { type Item = Result<(usize, Token, usize), LexicalError>; fn next(&mut self) -> Option { let token = self.lex.next()?;