mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-12 21:36:23 +00:00
cargo fmt
This commit is contained in:
parent
87f837cec7
commit
7535bb4661
571 changed files with 2210 additions and 2458 deletions
|
@ -385,8 +385,8 @@ mod tests {
|
|||
use expect_test::expect;
|
||||
|
||||
use crate::{
|
||||
ast::{self, make, syntax_factory::SyntaxFactory},
|
||||
AstNode, SyntaxKind,
|
||||
ast::{self, make, syntax_factory::SyntaxFactory},
|
||||
};
|
||||
|
||||
use super::*;
|
||||
|
@ -445,11 +445,12 @@ mod tests {
|
|||
expect.assert_eq(&edit.new_root.to_string());
|
||||
|
||||
assert_eq!(edit.find_annotation(placeholder_snippet).len(), 2);
|
||||
assert!(edit
|
||||
.annotations
|
||||
.iter()
|
||||
.flat_map(|(_, elements)| elements)
|
||||
.all(|element| element.ancestors().any(|it| &it == edit.new_root())))
|
||||
assert!(
|
||||
edit.annotations
|
||||
.iter()
|
||||
.flat_map(|(_, elements)| elements)
|
||||
.all(|element| element.ancestors().any(|it| &it == edit.new_root()))
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue