mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 22:24:14 +00:00
Fix tests
This commit is contained in:
parent
ed865a60bf
commit
a7c519c98f
2 changed files with 23 additions and 23 deletions
|
@ -36,7 +36,7 @@ pub(crate) fn toggle_macro_delimiter(acc: &mut Assists, ctx: &AssistContext<'_>)
|
|||
RCur,
|
||||
}
|
||||
|
||||
let makro = ctx.find_node_at_offset_with_descend::<ast::MacroCall>()?.clone_for_update();
|
||||
let makro = ctx.find_node_at_offset::<ast::MacroCall>()?.clone_for_update();
|
||||
let makro_text_range = makro.syntax().text_range();
|
||||
|
||||
let cursor_offset = ctx.offset();
|
||||
|
@ -62,7 +62,7 @@ pub(crate) fn toggle_macro_delimiter(acc: &mut Assists, ctx: &AssistContext<'_>)
|
|||
};
|
||||
|
||||
acc.add(
|
||||
AssistId("add_braces", AssistKind::Refactor),
|
||||
AssistId("toggle_macro_delimiter", AssistKind::Refactor),
|
||||
match token {
|
||||
MacroDelims::LPar => "Replace delimiters with braces",
|
||||
MacroDelims::RPar => "Replace delimiters with braces",
|
||||
|
@ -123,7 +123,7 @@ sth! { }
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn test_braclets() {
|
||||
fn test_braces() {
|
||||
check_assist(
|
||||
toggle_macro_delimiter,
|
||||
r#"
|
||||
|
|
Loading…
Reference in a new issue