Conversation
|
The title of this PR does not conform the conventional commits. Please fix it, thx. |
HexHex
HexHex serde deserialize
🆘 If anyone know how to pass this check, please fix the PR title, thx. p.s. Even the CI looks like it is passed, but in the logs of that CI check, you could find that the check is failed. |
|
Is this a bug in faster-hex? (It should first de-serialize to |
Hex serde deserializeHex serde deserialize
I checked the following code: #[serde(transparent)]
pub struct Hex(#[serde(with = "faster_hex")] Bytes); And, it failed, too. Ref:
I guess:
|
Hex serde deserializeHex serde deserialize
|
I guess it's because serde_json supports deserializing borrowed str/[u8], but toml doesn't. It may fail with serde_json too if there are escapes in the json string. |
What this PR does / why we need it?
This PR fixes:
What is the impact of this PR?
No Breaking Change
PR relation:
Special notes for your reviewer:
Before this PR, the
serde_jsonalready works well:axon/protocol/src/types/primitive.rs
Lines 564 to 569 in c944e24
axon/protocol/src/types/primitive.rs
Lines 298 to 302 in c944e24
axon/protocol/src/types/primitive.rs
Lines 373 to 375 in c944e24
CI Settings
CI Usage
Tip: Check the CI you want to run below, and then comment
/run-ci.CI Switch
CI Description
cargo clippy --all --all-targets --all-featurescargo +nightly fmt --all -- --checkandcargo sort -gwc