build(deps): quick-xml 0.41 → 0.42(String 人机工学迁移) - #10
Merged
Merged
Conversation
- 0.42 将 Name 类型/事件内容从 &[u8] 改为 &str(Rust 2024 / MSRV 1.86) - sax.rs 常量表 &[u8] = b"..." → &str = "...",全文件比较与 match 判据自动适配 - numbering.rs / image.rs / easydoc-mcp tools.rs 字节字面量 → 字符串字面量, extract_u32_attr / extract_u8_attr 签名 &[u8] → &str - omml_to_latex.rs 去掉多余 from_utf8 包装;BytesText / Attribute::value 直接取 &str / Cow<str>(保持 0.41 的不反转义语义不变) - 全量 1140 测试通过;clippy / fmt 干净 supersede dependabot #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
0.42 将 Name 类型(QName/LocalName 等)与事件内容从
&[u8]改为&str(Rust 2024 / MSRV 1.86),迁移要点:sax.rs常量表const X: &[u8] = b"..."→&str = "...",全文件比较与 match 判据自动适配numbering.rs/image.rs/easydoc-mcptools.rs 字节字面量 → 字符串字面量;extract_u32_attr/extract_u8_attr签名&[u8]→&stromml_to_latex.rs去掉多余from_utf8包装;BytesText/Attribute::value直接取&str/Cow<str>(保持 0.41 的不反转义语义不变,行为零漂移)supersede #4
验证