Fix test
This commit is contained in:
parent
503cbd3f4b
commit
fa621f80fa
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1079,7 +1079,6 @@ dependencies = [
|
|||||||
"log",
|
"log",
|
||||||
"ra_tt",
|
"ra_tt",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_derive",
|
|
||||||
"serde_json",
|
"serde_json",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -10,8 +10,7 @@ doctest = false
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ra_tt = { path = "../ra_tt" }
|
ra_tt = { path = "../ra_tt" }
|
||||||
serde_derive = "1.0.104"
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde = "1.0.104"
|
serde_json = "1.0"
|
||||||
serde_json = "1.0.48"
|
|
||||||
log = "0.4.8"
|
log = "0.4.8"
|
||||||
crossbeam-channel = "0.4.0"
|
crossbeam-channel = "0.4.0"
|
||||||
|
@ -252,7 +252,7 @@ fn test_proc_macro_rpc_works() {
|
|||||||
assert_eq!(task.macro_body, back.macro_body);
|
assert_eq!(task.macro_body, back.macro_body);
|
||||||
|
|
||||||
let result = ExpansionResult { expansion: tt.clone() };
|
let result = ExpansionResult { expansion: tt.clone() };
|
||||||
let json = serde_json::to_string(&task).unwrap();
|
let json = serde_json::to_string(&result).unwrap();
|
||||||
let back: ExpansionResult = serde_json::from_str(&json).unwrap();
|
let back: ExpansionResult = serde_json::from_str(&json).unwrap();
|
||||||
|
|
||||||
assert_eq!(result, back);
|
assert_eq!(result, back);
|
||||||
|
Loading…
Reference in New Issue
Block a user