diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_proc_macro/Cargo.toml | 5 | ||||
-rw-r--r-- | crates/ra_proc_macro/src/rpc.rs | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/crates/ra_proc_macro/Cargo.toml b/crates/ra_proc_macro/Cargo.toml index 7b4ff993f..f4a1b6d9e 100644 --- a/crates/ra_proc_macro/Cargo.toml +++ b/crates/ra_proc_macro/Cargo.toml | |||
@@ -10,8 +10,7 @@ doctest = false | |||
10 | 10 | ||
11 | [dependencies] | 11 | [dependencies] |
12 | ra_tt = { path = "../ra_tt" } | 12 | ra_tt = { path = "../ra_tt" } |
13 | serde_derive = "1.0.104" | 13 | serde = { version = "1.0", features = ["derive"] } |
14 | serde = "1.0.104" | 14 | serde_json = "1.0" |
15 | serde_json = "1.0.48" | ||
16 | log = "0.4.8" | 15 | log = "0.4.8" |
17 | crossbeam-channel = "0.4.0" | 16 | crossbeam-channel = "0.4.0" |
diff --git a/crates/ra_proc_macro/src/rpc.rs b/crates/ra_proc_macro/src/rpc.rs index e7eaf7c15..f88d91f78 100644 --- a/crates/ra_proc_macro/src/rpc.rs +++ b/crates/ra_proc_macro/src/rpc.rs | |||
@@ -252,7 +252,7 @@ mod tests { | |||
252 | assert_eq!(task.macro_body, back.macro_body); | 252 | assert_eq!(task.macro_body, back.macro_body); |
253 | 253 | ||
254 | let result = ExpansionResult { expansion: tt.clone() }; | 254 | let result = ExpansionResult { expansion: tt.clone() }; |
255 | let json = serde_json::to_string(&task).unwrap(); | 255 | let json = serde_json::to_string(&result).unwrap(); |
256 | let back: ExpansionResult = serde_json::from_str(&json).unwrap(); | 256 | let back: ExpansionResult = serde_json::from_str(&json).unwrap(); |
257 | 257 | ||
258 | assert_eq!(result, back); | 258 | assert_eq!(result, back); |