Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Item::kind, use tagged enum. Rename variants to match #82613

Merged
merged 5 commits into from
Mar 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
x.py fmt
  • Loading branch information
CraftSpider committed Mar 6, 2021
commit 70c9b370e822424de5c35b97bf49dffb5b8b9167
12 changes: 3 additions & 9 deletions src/rustdoc-json-types/tests.rs
Original file line number Diff line number Diff line change
@@ -4,10 +4,7 @@ use super::*;
fn test_struct_info_roundtrip() {
CraftSpider marked this conversation as resolved.
Show resolved Hide resolved
let s = ItemEnum::Struct(Struct {
struct_type: StructType::Plain,
generics: Generics {
params: vec![],
where_predicates: vec![]
},
generics: Generics { params: vec![], where_predicates: vec![] },
fields_stripped: false,
fields: vec![],
impls: vec![],
@@ -23,10 +20,7 @@ fn test_struct_info_roundtrip() {
#[test]
fn test_union_info_roundtrip() {
let u = ItemEnum::Union(Union {
generics: Generics {
params: vec![],
where_predicates: vec![]
},
generics: Generics { params: vec![], where_predicates: vec![] },
fields_stripped: false,
fields: vec![],
impls: vec![],
@@ -37,4 +31,4 @@ fn test_union_info_roundtrip() {
let de_u = serde_json::from_str(&union_json).unwrap();

assert_eq!(u, de_u);
}
}