mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +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::helpers::{mod_path_to_ast, FamousDefs};
|
||||||
use ide_db::RootDatabase;
|
use ide_db::RootDatabase;
|
||||||
use itertools::Itertools;
|
use itertools::Itertools;
|
||||||
use syntax::TextRange;
|
|
||||||
use syntax::ast::{self, make, AstNode, HasName, MatchArm, Pat};
|
use syntax::ast::{self, make, AstNode, HasName, MatchArm, Pat};
|
||||||
|
use syntax::TextRange;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
utils::{self, render_snippet, Cursor},
|
utils::{self, render_snippet, Cursor},
|
||||||
|
@ -319,7 +319,7 @@ fn main() {
|
||||||
fn not_applicable_outside_of_range_left() {
|
fn not_applicable_outside_of_range_left() {
|
||||||
check_assist_not_applicable(
|
check_assist_not_applicable(
|
||||||
add_missing_match_arms,
|
add_missing_match_arms,
|
||||||
r#"
|
r#"
|
||||||
enum A {
|
enum A {
|
||||||
X,
|
X,
|
||||||
Y
|
Y
|
||||||
|
@ -338,7 +338,7 @@ fn foo(a: A) {
|
||||||
fn not_applicable_outside_of_range_right() {
|
fn not_applicable_outside_of_range_right() {
|
||||||
check_assist_not_applicable(
|
check_assist_not_applicable(
|
||||||
add_missing_match_arms,
|
add_missing_match_arms,
|
||||||
r#"
|
r#"
|
||||||
enum A {
|
enum A {
|
||||||
X,
|
X,
|
||||||
Y
|
Y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue