mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
Fix test
This commit is contained in:
parent
503cbd3f4b
commit
fa621f80fa
3 changed files with 3 additions and 5 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -1079,7 +1079,6 @@ dependencies = [
|
|||
"log",
|
||||
"ra_tt",
|
||||
"serde",
|
||||
"serde_derive",
|
||||
"serde_json",
|
||||
]
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -252,7 +252,7 @@ mod tests {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue