Skip to content

Quick docs updates, Rust Edition 2024, bump version for release - #1008

Merged
dralley merged 4 commits into
tafia:masterfrom
dralley:derive
Aug 22, 2026
Merged

Quick docs updates, Rust Edition 2024, bump version for release#1008
dralley merged 4 commits into
tafia:masterfrom
dralley:derive

Conversation

@dralley

@dralley dralley commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@dralley
dralley requested a review from Mingun August 22, 2026 17:36
Comment thread src/events/attributes.rs
let mut iter = (offset..).zip(slice[offset..].iter());

match iter.find(|(_, &b)| is_whitespace(b)) {
match iter.find(|&(_, &b)| is_whitespace(b)) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

From cargo fix --edition

Comment thread examples/serde_roundtrip.rs Outdated
//! |------------------------------|----------------------------------------------|
//! | attribute `id="..."` | `#[serde(rename = "@id")]` |
//! | text inside an element | `#[serde(rename = "$text")]` |
//! | element presence | `#[serde(rename = "$value")]` |

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Not sure if this is the best description

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That will be better because that is common usage of this rename

Suggested change
//! | element presence | `#[serde(rename = "$value")]` |
//! | xs:choice as Rust enum | `#[serde(rename = "$value")]` |

@dralley

dralley commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator Author

cargo fmt is apparently required after an edition update, the lint rules are different

Comment thread examples/serde_roundtrip.rs Outdated
//! |------------------------------|----------------------------------------------|
//! | attribute `id="..."` | `#[serde(rename = "@id")]` |
//! | text inside an element | `#[serde(rename = "$text")]` |
//! | element presence | `#[serde(rename = "$value")]` |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That will be better because that is common usage of this rename

Suggested change
//! | element presence | `#[serde(rename = "$value")]` |
//! | xs:choice as Rust enum | `#[serde(rename = "$value")]` |

Comment thread src/reader/mod.rs Outdated
Comment thread src/writer.rs Outdated
Comment thread Changelog.md
@codecov-commenter

codecov-commenter commented Aug 22, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 52.63158% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.27%. Comparing base (e00ae5c) to head (36a2c52).
⚠️ Report is 69 commits behind head on master.

Files with missing lines Patch % Lines
benches/microbenches.rs 0.00% 4 Missing ⚠️
src/errors.rs 0.00% 2 Missing ⚠️
src/name.rs 0.00% 2 Missing ⚠️
src/events/attributes.rs 88.88% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1008      +/-   ##
==========================================
- Coverage   57.31%   55.27%   -2.04%     
==========================================
  Files          46       51       +5     
  Lines       18197    18723     +526     
==========================================
- Hits        10429    10349      -80     
- Misses       7768     8374     +606     
Flag Coverage Δ
unittests 55.27% <52.63%> (-2.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Our MSRV is 1.86 - 1.85 introduced Rust 2024 Edition. Therefore we can
bump the edition.
(Edition 2024 changes linting rules)
@dralley
dralley merged commit 7cc62f4 into tafia:master Aug 22, 2026
7 checks passed
@dralley
dralley deleted the derive branch August 22, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants