-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Unpublicize JSON reexports, unprefix JSON type aliases #19224
Conversation
cc @aturon |
Can you make sure to word the commit message in accordance with our breaking changes policy? This seems ok to me, cc #19253. |
@alexcrichton Ah, was not aware of that policy. Will rename now |
No worries, thanks @frewsxcv! |
9f3b64d
to
5646221
Compare
Look alright @alexcrichton ? |
5646221
to
482111a
Compare
Had a stupid error, fixed it, squashed it |
Some(U64Value(n)) => Ok(U64(n)), | ||
Some(F64Value(n)) => Ok(F64(n)), | ||
Some(BooleanValue(b)) => Ok(Boolean(b)), | ||
return match self.token { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Don't need the return
here.)
The type aliases json::JsonString and json::JsonObject were originally prefixed with 'json' to prevent collisions with (at the time) the enums json::String and json::Object respectively. Now that enum namespacing has landed, this 'json' prefix is redundant and can be removed: json::JsonArray -> json::Array json::JsonObject -> json::Object In addition, this commit also unpublicizes all of the re-exports in this JSON module, as a part of rust-lang#19253 [breaking-change]
482111a
to
ce238d7
Compare
Okay, more stupid errors. I guess I didn't run the tests last time? Let's hope third times the charm |
Addressing the issues brought up in [this thread](rust-lang#19114 (comment)) This pull request: * Unpublicizes reexports * Renames type aliases: * `json::JsonArray` ☞ `json::Array` * `json::JsonObject` ☞ `json::Object`
Addressing the issues brought up in this thread
This pull request:
json::JsonArray
☞json::Array
json::JsonObject
☞json::Object