]> git.lizzy.rs Git - rust.git/commitdiff
Unindent the test
authorKirill Bulatov <mail4score@gmail.com>
Sat, 16 Jan 2021 17:51:42 +0000 (19:51 +0200)
committerKirill Bulatov <mail4score@gmail.com>
Sat, 16 Jan 2021 17:51:42 +0000 (19:51 +0200)
crates/completion/src/completions/flyimport.rs

index 54f8e6d24e39511e541a20638ed9ce93f79e9cd6..22280963845cdf33725367bcf0d3680ec36f4bcf 100644 (file)
@@ -262,29 +262,29 @@ fn main() {
     fn does_not_propose_names_in_scope() {
         check(
             r#"
-        //- /lib.rs crate:dep
-        pub mod test_mod {
-            pub trait TestTrait {
-                const SPECIAL_CONST: u8;
-                type HumbleType;
-                fn weird_function();
-                fn random_method(&self);
-            }
-            pub struct TestStruct {}
-            impl TestTrait for TestStruct {
-                const SPECIAL_CONST: u8 = 42;
-                type HumbleType = ();
-                fn weird_function() {}
-                fn random_method(&self) {}
-            }
-        }
+//- /lib.rs crate:dep
+pub mod test_mod {
+    pub trait TestTrait {
+        const SPECIAL_CONST: u8;
+        type HumbleType;
+        fn weird_function();
+        fn random_method(&self);
+    }
+    pub struct TestStruct {}
+    impl TestTrait for TestStruct {
+        const SPECIAL_CONST: u8 = 42;
+        type HumbleType = ();
+        fn weird_function() {}
+        fn random_method(&self) {}
+    }
+}
 
-        //- /main.rs crate:main deps:dep
-        use dep::test_mod::TestStruct;
-        fn main() {
-            TestSt$0
-        }
-        "#,
+//- /main.rs crate:main deps:dep
+use dep::test_mod::TestStruct;
+fn main() {
+    TestSt$0
+}
+"#,
             expect![[r#""#]],
         );
     }