This commit is contained in:
Edwin Cheng 2020-03-27 05:08:26 +08:00
parent 503cbd3f4b
commit fa621f80fa
3 changed files with 3 additions and 5 deletions

1
Cargo.lock generated
View File

@ -1079,7 +1079,6 @@ dependencies = [
"log",
"ra_tt",
"serde",
"serde_derive",
"serde_json",
]

View File

@ -10,8 +10,7 @@ doctest = false
[dependencies]
ra_tt = { path = "../ra_tt" }
serde_derive = "1.0.104"
serde = "1.0.104"
serde_json = "1.0.48"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
log = "0.4.8"
crossbeam-channel = "0.4.0"

View File

@ -252,7 +252,7 @@ fn test_proc_macro_rpc_works() {
assert_eq!(task.macro_body, back.macro_body);
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();
assert_eq!(result, back);