cargo fmt

This commit is contained in:
Dezhi Wu 2021-09-07 14:50:33 +08:00
parent 82ae228d98
commit 6d2154e409

View file

@ -964,13 +964,15 @@ fn main() { let foo_test = fo$0o(); }
); );
// use literal `crate` in path // use literal `crate` in path
check(r#" check(
r#"
pub struct X; pub struct X;
fn foo() -> crate::X { X } fn foo() -> crate::X { X }
fn main() { f$0oo(); } fn main() { f$0oo(); }
"#, expect![[r#" "#,
expect![[r#"
*foo* *foo*
```rust ```rust
@ -980,7 +982,8 @@ fn main() { f$0oo(); }
```rust ```rust
fn foo() -> crate::X fn foo() -> crate::X
``` ```
"#]]); "#]],
);
} }
#[test] #[test]