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

Update to the latest rustc-serialize #12

Merged
merged 3 commits into from Jan 7, 2015
Merged

Update to the latest rustc-serialize #12

merged 3 commits into from Jan 7, 2015

Conversation

@bitonic
Copy link
Collaborator

bitonic commented Jan 7, 2015

No description provided.

V: Encodable<EncoderWriter<'a, MemWriter>, IoError> +
Decodable<DecoderReader<'a, MemReader>, IoError> +
PartialEq + Show>(element: V) {
fn the_same<'a, V>(element: V) where V: Encodable, V: Decodable, V: PartialEq, V: Show {

This comment has been minimized.

@TyOverby

TyOverby Jan 7, 2015

Collaborator

Why isn't this V: Encodable + Decodable + ...?

This comment has been minimized.

@bitonic

bitonic Jan 7, 2015

Author Collaborator

I find the where notation nicer for long lists, and I believe the + syntax is sort of frowned upon.

In other words, no good reason :).

src/lib.rs Outdated
@@ -43,19 +41,13 @@ where T: Decodable<DecoderReader<'a, MemReader>, IoError> {
// the current json encoder in the stdlib

// TODO: Make code safe https://github.com/rust-lang/rust/issues/14302

This comment has been minimized.

@TyOverby

TyOverby Jan 7, 2015

Collaborator

Remove comment.

This comment has been minimized.

@bitonic

bitonic Jan 7, 2015

Author Collaborator

Ooops, will do.

src/lib.rs Outdated
t.encode(std::mem::transmute(&mut writer::EncoderWriter::new(w, size_limit)))
}
pub fn encode_into<T: Encodable, W: Writer>(t: &T, w: &mut W, size_limit: SizeLimit) -> IoResult<()> {
t.encode(&mut writer::EncoderWriter::new(w, size_limit))
}

// TODO: Make code safe https://github.com/rust-lang/rust/issues/14302

This comment has been minimized.

@TyOverby

TyOverby Jan 7, 2015

Collaborator

Remove comment.

@TyOverby
Copy link
Collaborator

TyOverby commented Jan 7, 2015

As an aside, feel free to add yourself to the owners list in Cargo.toml. I've also added you as an owner of the github repo.

bitonic added 2 commits Jan 7, 2015
@bitonic bitonic force-pushed the bitonic:master branch from aa4c24a to b0a9c4e Jan 7, 2015
TyOverby added a commit that referenced this pull request Jan 7, 2015
Update to the latest rustc-serialize
@TyOverby TyOverby merged commit d700395 into servo:master Jan 7, 2015
1 check passed
1 check passed
continuous-integration/travis-ci The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.