diff options
-rw-r--r-- | Cargo.lock | 1 | ||||
-rw-r--r-- | crates/ra_proc_macro/Cargo.toml | 5 | ||||
-rw-r--r-- | crates/ra_proc_macro/src/rpc.rs | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock index 7887bc217..f9265af43 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -1079,7 +1079,6 @@ dependencies = [ | |||
1079 | "log", | 1079 | "log", |
1080 | "ra_tt", | 1080 | "ra_tt", |
1081 | "serde", | 1081 | "serde", |
1082 | "serde_derive", | ||
1083 | "serde_json", | 1082 | "serde_json", |
1084 | ] | 1083 | ] |
1085 | 1084 | ||
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); |