Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Clippy run and implement Default for State and Enconder #101

Merged
merged 1 commit into from Jun 5, 2016
Merged

Clippy run and implement Default for State and Enconder #101

merged 1 commit into from Jun 5, 2016

Conversation

leoyvens
Copy link
Contributor

@leoyvens leoyvens commented May 29, 2016

Fix a bunch of lints indicated by clippy, most common one was useless format!. Most notable change is to implement Default for State and derive it for Encoder. Also closes #102.

@@ -179,11 +179,10 @@ impl rustc_serialize::Encodable for Value {
where E: rustc_serialize::Encoder
{
match *self {
Value::String(ref s) => e.emit_str(s),
Value::String(ref s) | Value::Datetime(ref s) => e.emit_str(s),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this stay as a separate branch? It's a little clearer like that and may change one day as well

@leoyvens
Copy link
Contributor Author

leoyvens commented Jun 4, 2016

@alexcrichton Done! Also added the fix for #102

@alexcrichton alexcrichton merged commit fb8050d into toml-rs:master Jun 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lookup*() have incorrect lifetime specifiers
2 participants