mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-24 21:19:37 +00:00
fix: clippy error in rust 1.84 and deny warnings in CI (#1178)
* fix: clippy error in 1.84 * fix: deny warnings * fix: clippy warnings and doc errors * fix: warnings * fix: warnings * fix: warnings * fix: compile error
This commit is contained in:
parent
31b22d9333
commit
448ce484d8
12 changed files with 30 additions and 30 deletions
|
|
@ -617,7 +617,7 @@ fn token_from_ident(ei: &ExprInfo, ident: &LinkedNode, modifier: &mut ModifierSe
|
|||
let next = ident.next_leaf();
|
||||
let next_is_adjacent = next
|
||||
.as_ref()
|
||||
.map_or(false, |n| n.range().start == ident.range().end);
|
||||
.is_some_and(|n| n.range().start == ident.range().end);
|
||||
let next_parent = next.as_ref().and_then(|n| n.parent_kind());
|
||||
let next_kind = next.map(|n| n.kind());
|
||||
let lexical_function_call = next_is_adjacent
|
||||
|
|
@ -699,7 +699,7 @@ fn ns(modifier: &mut ModifierSet) -> TokenType {
|
|||
fn get_expr_following_hashtag<'a>(hashtag: &LinkedNode<'a>) -> Option<LinkedNode<'a>> {
|
||||
hashtag
|
||||
.next_sibling()
|
||||
.filter(|next| next.cast::<ast::Expr>().map_or(false, |expr| expr.hash()))
|
||||
.filter(|next| next.cast::<ast::Expr>().is_some_and(|expr| expr.hash()))
|
||||
.and_then(|node| node.leftmost_leaf())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue