Unnamed repository; edit this file 'description' to name the repository.
style: apply rustfmt
protonblu 9 weeks ago
parent f858569 · commit c4c0ba4
-rw-r--r--crates/ide-assists/src/handlers/generate_function.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/ide-assists/src/handlers/generate_function.rs b/crates/ide-assists/src/handlers/generate_function.rs
index de52c46d57..2c5053468b 100644
--- a/crates/ide-assists/src/handlers/generate_function.rs
+++ b/crates/ide-assists/src/handlers/generate_function.rs
@@ -3214,11 +3214,12 @@ fn bar(arg: impl Fn(_) -> bool) {
}
"#,
);
- }#[test]
-fn generate_method_uses_current_impl_block() {
- check_assist(
- generate_function,
- r"
+ }
+ #[test]
+ fn generate_method_uses_current_impl_block() {
+ check_assist(
+ generate_function,
+ r"
struct Foo;
impl Foo {
@@ -3233,7 +3234,7 @@ impl Foo {
}
}
",
- r"
+ r"
struct Foo;
impl Foo {
@@ -3252,7 +3253,6 @@ impl Foo {
}
}
",
- )
-}
+ )
+ }
}
-