Skip to content

Commit

Permalink
fix: fix new warnings and lints
Browse files Browse the repository at this point in the history
  • Loading branch information
w-lfchen committed Sep 26, 2024
1 parent a28b5a3 commit cb7b24d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions crates/eww/src/error_handling_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ pub fn print_error(err: anyhow::Error) {
}

pub fn format_error(err: &anyhow::Error) -> String {
for err in err.chain() {
format!("chain: {}", err);
}
anyhow_err_to_diagnostic(err).and_then(|diag| stringify_diagnostic(diag).ok()).unwrap_or_else(|| format!("{:?}", err))
}

Expand Down
3 changes: 1 addition & 2 deletions crates/yuck/src/parser/ast_iterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ impl<I: Iterator<Item = Ast>> Iterator for AstIterator<I> {
type Item = Ast;

fn next(&mut self) -> Option<Self::Item> {
self.iter.next().map(|x| {
self.iter.next().inspect(|x| {
self.remaining_span.0 = x.span().1;
x
})
}
}
Expand Down

0 comments on commit cb7b24d

Please sign in to comment.