Move all use of snapshot to inline
diff --git a/tests/test_asyncness.rs b/tests/test_asyncness.rs
index 4d7ae7d..8289b3d 100644
--- a/tests/test_asyncness.rs
+++ b/tests/test_asyncness.rs
@@ -9,12 +9,33 @@
#[test]
fn test_async_fn() {
- let code = "async fn process() {}";
- snapshot!(code as Item);
+ let input = "async fn process() {}";
+
+ snapshot!(input as Item, @r###"
+ ⋮Item::Fn {
+ ⋮ vis: Inherited,
+ ⋮ asyncness: Some,
+ ⋮ ident: "process",
+ ⋮ decl: FnDecl {
+ ⋮ generics: Generics,
+ ⋮ output: Default,
+ ⋮ },
+ ⋮ block: Block,
+ ⋮}
+ "###);
}
#[test]
fn test_async_closure() {
- let code = "async || {}";
- snapshot!(code as Expr);
+ let input = "async || {}";
+
+ snapshot!(input as Expr, @r###"
+ ⋮Expr::Closure {
+ ⋮ asyncness: Some,
+ ⋮ output: Default,
+ ⋮ body: Expr::Block {
+ ⋮ block: Block,
+ ⋮ },
+ ⋮}
+ "###);
}