docx-rs icon indicating copy to clipboard operation
docx-rs copied to clipboard

fix(strong-xml): `write_flatten_text` api changed

Open oovm opened this issue 4 years ago • 5 comments

  • Fix #47
  • Fix following error
C:/Users/.cargo/bin/cargo.exe build --color=always --message-format=json-diagnostic-rendered-ansi --package docx --example table
   Compiling jetscii v0.4.4
error: unconstrained generic constant
   --> C:\Users\.cargo\registry\src\github.com-1ecc6299db9ec823\jetscii-0.4.4\src\simd.rs:110:13
    |
110 |             T::CONTROL_BYTE,
    |             ^^^^^^^^^^^^^^^
    |
    = help: try adding a `where` bound using this expression: `where [(); T::CONTROL_BYTE]:`

error: unconstrained generic constant
   --> C:\Users\.cargo\registry\src\github.com-1ecc6299db9ec823\jetscii-0.4.4\src\simd.rs:149:13
    |
149 |             T::CONTROL_BYTE,
    |             ^^^^^^^^^^^^^^^
    |
    = help: try adding a `where` bound using this expression: `where [(); T::CONTROL_BYTE]:`

error: aborting due to 2 previous errors

error: could not compile `jetscii` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
Process finished with exit code 101

oovm avatar Dec 20 '21 03:12 oovm

Tested with example from Poi and this fixes documented issue

vademo avatar Dec 21 '21 12:12 vademo

meet same problems. hope this PR can merge.

TimRChen avatar Jan 05 '22 08:01 TimRChen

Agree, without this fix this can't be used anymore!

For now I'll use

docx = { git = "https://github.com/notedge/docx-rs", branch = "master" }

in my cargo.toml.

Christoph-AK avatar Jan 19 '22 12:01 Christoph-AK

@PoiScript 你好, 你可以抽空 review 一下这个 pr 吗, 这个提交主要包含了一些过期 api 的修复, 不会占用太多时间

oovm avatar Jan 19 '22 14:01 oovm

ha, came here to open this same PR

bburdette avatar Dec 12 '22 00:12 bburdette