mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
apply formatting recommendations
This commit is contained in:
parent
01e3022521
commit
0a8a56b77a
1 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@ use hir::{Adt, HasSource, ModuleDef, Semantics};
|
|||
use ide_db::helpers::{mod_path_to_ast, FamousDefs};
|
||||
use ide_db::RootDatabase;
|
||||
use itertools::Itertools;
|
||||
use syntax::TextRange;
|
||||
use syntax::ast::{self, make, AstNode, HasName, MatchArm, Pat};
|
||||
use syntax::TextRange;
|
||||
|
||||
use crate::{
|
||||
utils::{self, render_snippet, Cursor},
|
||||
|
@ -319,7 +319,7 @@ fn main() {
|
|||
fn not_applicable_outside_of_range_left() {
|
||||
check_assist_not_applicable(
|
||||
add_missing_match_arms,
|
||||
r#"
|
||||
r#"
|
||||
enum A {
|
||||
X,
|
||||
Y
|
||||
|
@ -338,7 +338,7 @@ fn foo(a: A) {
|
|||
fn not_applicable_outside_of_range_right() {
|
||||
check_assist_not_applicable(
|
||||
add_missing_match_arms,
|
||||
r#"
|
||||
r#"
|
||||
enum A {
|
||||
X,
|
||||
Y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue