Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/ast/prec.rs')
-rw-r--r--crates/syntax/src/ast/prec.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/syntax/src/ast/prec.rs b/crates/syntax/src/ast/prec.rs
index 4f0e2cad17..00750bff0b 100644
--- a/crates/syntax/src/ast/prec.rs
+++ b/crates/syntax/src/ast/prec.rs
@@ -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();