Fix tests

This commit is contained in:
Lukas Wirth 2024-08-27 14:23:23 +02:00
parent ed865a60bf
commit a7c519c98f
2 changed files with 23 additions and 23 deletions

View file

@ -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#"