-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Clean up serde rename and use rename_all = camelCase when possible #9823
Conversation
rpc/src/v1/types/trace.rs
Outdated
EmptyStep, | ||
/// External (attributed as part of an external protocol) | ||
#[serde(rename="external")] | ||
#[serde(rename = "external")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
rpc/src/v1/types/pubsub.rs
Outdated
NewPendingTransactions, | ||
/// Node syncing status subscription. | ||
#[serde(rename="syncing")] | ||
#[serde(rename = "syncing")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
rpc/src/v1/types/trace.rs
Outdated
DelegateCall, | ||
/// Static call | ||
#[serde(rename="staticcall")] | ||
#[serde(rename = "staticcall")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
rpc/src/v1/types/node_kind.rs
Outdated
Full, | ||
/// A light node does a minimal header sync and fetches data as needed | ||
/// from the network. | ||
#[serde(rename="light")] | ||
#[serde(rename = "light")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
rpc/src/v1/types/node_kind.rs
Outdated
Personal, | ||
/// A public, open node. | ||
#[serde(rename="public")] | ||
#[serde(rename = "public")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
json/src/spec/validator_set.rs
Outdated
Contract(Address), | ||
/// A map of starting blocks for each validator set. | ||
#[serde(rename="multi")] | ||
#[serde(rename = "multi")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
json/src/spec/seal.rs
Outdated
Tendermint(TendermintSeal), | ||
/// Generic seal. | ||
#[serde(rename="generic")] | ||
#[serde(rename = "generic")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
json/src/spec/engine.rs
Outdated
AuthorityRound(AuthorityRound), | ||
/// Tendermint engine. | ||
#[serde(rename="tendermint")] | ||
#[serde(rename = "tendermint")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
json/src/spec/builtin.rs
Outdated
Modexp(Modexp), | ||
/// Pricing for alt_bn128_pairing exponentiation. | ||
#[serde(rename="alt_bn128_pairing")] | ||
#[serde(rename = "alt_bn128_pairing")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
whisper/src/rpc/types.rs
Outdated
Public(Public), | ||
#[serde(rename="identity")] | ||
#[serde(rename = "identity")] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
Nice! 👍
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.
👍
@@ -27,6 +27,7 @@ pub enum Engine { | |||
/// Instantly sealing engine. | |||
InstantSeal(Option<InstantSeal>), | |||
/// Ethash engine. | |||
#[serde(rename = "Ethash")] |
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.
Good catch!
This cleans up all cases where:
rename_all = camelCase
whenever possible.rename
.