Skip to content

Commit

Permalink
fix lint (depress a static_mut_refs warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Jan 10, 2025
1 parent e1160f0 commit 8897fad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/offline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"),
Expand Down
2 changes: 1 addition & 1 deletion src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ pub fn error2<E: ToString>(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<Self::Item> {
let token = self.lex.next()?;
Expand Down

0 comments on commit 8897fad

Please sign in to comment.