aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/completions
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2021-01-16 17:51:42 +0000
committerKirill Bulatov <[email protected]>2021-01-16 17:51:42 +0000
commit497fc232e7d90d8d39c7a13742dd85d758dc2f72 (patch)
tree23bbb365f31438949358a576bc9467fa70fa874e /crates/completion/src/completions
parent7ae1309ac58bba9e5694629c21287f29f137d6b6 (diff)
Unindent the test
Diffstat (limited to 'crates/completion/src/completions')
-rw-r--r--crates/completion/src/completions/flyimport.rs44
1 files changed, 22 insertions, 22 deletions
diff --git a/crates/completion/src/completions/flyimport.rs b/crates/completion/src/completions/flyimport.rs
index 54f8e6d24..222809638 100644
--- a/crates/completion/src/completions/flyimport.rs
+++ b/crates/completion/src/completions/flyimport.rs
@@ -262,29 +262,29 @@ fn main() {
262 fn does_not_propose_names_in_scope() { 262 fn does_not_propose_names_in_scope() {
263 check( 263 check(
264 r#" 264 r#"
265 //- /lib.rs crate:dep 265//- /lib.rs crate:dep
266 pub mod test_mod { 266pub mod test_mod {
267 pub trait TestTrait { 267 pub trait TestTrait {
268 const SPECIAL_CONST: u8; 268 const SPECIAL_CONST: u8;
269 type HumbleType; 269 type HumbleType;
270 fn weird_function(); 270 fn weird_function();
271 fn random_method(&self); 271 fn random_method(&self);
272 } 272 }
273 pub struct TestStruct {} 273 pub struct TestStruct {}
274 impl TestTrait for TestStruct { 274 impl TestTrait for TestStruct {
275 const SPECIAL_CONST: u8 = 42; 275 const SPECIAL_CONST: u8 = 42;
276 type HumbleType = (); 276 type HumbleType = ();
277 fn weird_function() {} 277 fn weird_function() {}
278 fn random_method(&self) {} 278 fn random_method(&self) {}
279 } 279 }
280 } 280}
281 281
282 //- /main.rs crate:main deps:dep 282//- /main.rs crate:main deps:dep
283 use dep::test_mod::TestStruct; 283use dep::test_mod::TestStruct;
284 fn main() { 284fn main() {
285 TestSt$0 285 TestSt$0
286 } 286}
287 "#, 287"#,
288 expect![[r#""#]], 288 expect![[r#""#]],
289 ); 289 );
290 } 290 }