diff options
Diffstat (limited to 'crates/ra_assists/src/handlers')
-rw-r--r-- | crates/ra_assists/src/handlers/add_function.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/crates/ra_assists/src/handlers/add_function.rs b/crates/ra_assists/src/handlers/add_function.rs index b65ded871..9bd46f5dc 100644 --- a/crates/ra_assists/src/handlers/add_function.rs +++ b/crates/ra_assists/src/handlers/add_function.rs | |||
@@ -907,23 +907,14 @@ mod foo; | |||
907 | fn main() { | 907 | fn main() { |
908 | foo::bar<|>() | 908 | foo::bar<|>() |
909 | } | 909 | } |
910 | |||
911 | //- /foo.rs | 910 | //- /foo.rs |
912 | |||
913 | ", | 911 | ", |
914 | r" | 912 | r" |
915 | //- /main.rs | ||
916 | mod foo; | ||
917 | 913 | ||
918 | fn main() { | ||
919 | foo::bar() | ||
920 | } | ||
921 | 914 | ||
922 | //- /foo.rs | 915 | pub(crate) fn bar() { |
923 | fn bar() { | ||
924 | <|>todo!() | 916 | <|>todo!() |
925 | } | 917 | }", |
926 | ", | ||
927 | ) | 918 | ) |
928 | } | 919 | } |
929 | 920 | ||