diff options
author | Aleksey Kladov <[email protected]> | 2020-12-22 16:18:45 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-12-23 08:02:42 +0000 |
commit | 2c84c2d07af013006b8092c7303aa8c73f677fea (patch) | |
tree | c90d4fd9f9520044e870355b6fb791c9e95354a3 /crates/assists/src/handlers/extract_module_to_file.rs | |
parent | 58b6763f206b80a3000eb3c7642181fa5fb98229 (diff) |
Don't think that /submod.rs is /mod.rs
Diffstat (limited to 'crates/assists/src/handlers/extract_module_to_file.rs')
-rw-r--r-- | crates/assists/src/handlers/extract_module_to_file.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/assists/src/handlers/extract_module_to_file.rs b/crates/assists/src/handlers/extract_module_to_file.rs index 3e67fdca2..50bf67ef7 100644 --- a/crates/assists/src/handlers/extract_module_to_file.rs +++ b/crates/assists/src/handlers/extract_module_to_file.rs | |||
@@ -91,18 +91,18 @@ mod tests; | |||
91 | extract_module_to_file, | 91 | extract_module_to_file, |
92 | r#" | 92 | r#" |
93 | //- /main.rs | 93 | //- /main.rs |
94 | mod submodule; | 94 | mod submod; |
95 | //- /submodule.rs | 95 | //- /submod.rs |
96 | mod inner<|> { | 96 | mod inner<|> { |
97 | fn f() {} | 97 | fn f() {} |
98 | } | 98 | } |
99 | fn g() {} | 99 | fn g() {} |
100 | "#, | 100 | "#, |
101 | r#" | 101 | r#" |
102 | //- /submodule.rs | 102 | //- /submod.rs |
103 | mod inner; | 103 | mod inner; |
104 | fn g() {} | 104 | fn g() {} |
105 | //- /submodule/inner.rs | 105 | //- /submod/inner.rs |
106 | fn f() {} | 106 | fn f() {} |
107 | "#, | 107 | "#, |
108 | ); | 108 | ); |