mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-24 09:05:34 +00:00
cargo fmt
This commit is contained in:
parent
87f837cec7
commit
7535bb4661
571 changed files with 2210 additions and 2458 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue