Closed TonyMistark closed 9 months ago
There is already a pull request that fixes this bug. https://github.com/bokuweb/docx-rs/pull/35 I hope it gets published on crates.io soon.
Cargo.toml
[package]
name = "docx"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# docx-rs = "0.4.7"
docx-rs = { git = "https://github.com/bokuweb/docx-rs", branch = "main" }
Describe the bug
And Then, the error log
A clear and concise description of what the bug is.
Reproduced step
Steps to reproduce the behavior:
RUST_BACKTRACE=full cargo run
Expected behavior
read the docx file well
Actual behavior
thread 'main' panicked at 'called
Result::unwrap()
on anErr
value: NumError(ParseIntError { kind: InvalidDigit })', src/main.rs:16:46OS: [e.g. iOS] Linux version 6.2.0-35-generic (buildd@bos03-amd64-016) (x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 6 10:23:26 UTC 2
Version [e.g. 22] rustc 1.72.0 (5680fa18f 2023-08-23) cargo 1.72.0 (103a7ff2e 2023-08-15) Cargo.toml
See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] docx-rs = "0.4.7"