Unnamed repository; edit this file 'description' to name the repository.
cargo fmt
Dezhi Wu 2021-09-07
parent 82ae228 · commit 6d2154e
-rw-r--r--crates/ide/src/hover.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/crates/ide/src/hover.rs b/crates/ide/src/hover.rs
index 3fb1956d80..f9000ca000 100644
--- a/crates/ide/src/hover.rs
+++ b/crates/ide/src/hover.rs
@@ -964,13 +964,15 @@ fn main() { let foo_test = fo$0o(); }
);
// use literal `crate` in path
- check(r#"
+ check(
+ r#"
pub struct X;
fn foo() -> crate::X { X }
fn main() { f$0oo(); }
- "#, expect![[r#"
+ "#,
+ expect![[r#"
*foo*
```rust
@@ -980,7 +982,8 @@ fn main() { f$0oo(); }
```rust
fn foo() -> crate::X
```
- "#]]);
+ "#]],
+ );
}
#[test]