kinnison / marked-data

A YAML representation library which explicitly retains provenance data
MIT License
12 stars 4 forks source link

Build fails on `features = ['serde']` #15

Closed xnuk closed 3 weeks ago

xnuk commented 3 weeks ago
$ cargo build --features serde
   Compiling marked-yaml v0.7.0 (/home/xnuk/marked-data/marked-yaml)
error[E0308]: mismatched types
   --> marked-yaml/src/spanned_serde.rs:624:20
    |
624 |             error: e,
    |                    ^ expected `Box<Error>`, found `Error`
    |
    = note: expected struct `Box<spanned_serde::Error>`
                 found enum `spanned_serde::Error`
    = note: for more on the distinction between the stack and the heap, read https://doc.rust-lang.org/book/ch15-01-box.html, https://doc.rust-lang.org/rust-by-example/std/box.html, and https://doc.rust-lang.org/std/boxed/index.html
help: store this in the heap by calling `Box::new`
    |
624 |             error: Box::new(e),
    |                    +++++++++ +

For more information about this error, try `rustc --explain E0308`.
error: could not compile `marked-yaml` (lib) due to 1 previous error

features = ['serde', 'serde-path'] does not have build errors.

kinnison commented 3 weeks ago

Well that's embarrassing.

I'll push a 0.7.1 in a bit.

kinnison commented 3 weeks ago

Published. Apologies.