-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix: Hex
serde deserialize
#1396
Conversation
The title of this PR does not conform the conventional commits. Please fix it, thx. |
Hex
Hex
Hex
Hex
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_json
already 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-features
cargo +nightly fmt --all -- --check
andcargo sort -gwc