cargo fmt

This commit is contained in:
BenjaminBrienen 2025-03-10 12:42:27 +01:00
parent 87f837cec7
commit 7535bb4661
571 changed files with 2210 additions and 2458 deletions

View file

@ -3,8 +3,9 @@
use stdx::always;
use crate::{
AstNode, SyntaxNode,
ast::{self, BinaryOp, Expr, HasArgList, RangeItem},
match_ast, AstNode, SyntaxNode,
match_ast,
};
#[derive(Debug, Clone, Copy, PartialEq, PartialOrd)]
@ -283,7 +284,7 @@ impl Expr {
.map(|op| matches!(op, BinaryOp::LogicOp(_)))
.unwrap_or(false) =>
{
return true
return true;
}
_ if self.clone().trailing_brace().is_some() => return true,
_ => {}
@ -446,8 +447,8 @@ impl Expr {
}
fn is_ordered_before_parent_in_place_of(&self, parent: &Expr, place_of: &SyntaxNode) -> bool {
use rowan::TextSize;
use Expr::*;
use rowan::TextSize;
let self_range = self.syntax().text_range();
let place_of_range = place_of.text_range();