chipsenkbeil / vimwiki-rs

Rust library and tooling to parse, render, and modify vimwiki text and files.
56 stars 2 forks source link

Add to_borrowed and into_owned for ParseError<'a> #130

Closed chipsenkbeil closed 3 years ago

chipsenkbeil commented 3 years ago

Otherwise cannot be used when need a static lifetime for an error.

chipsenkbeil commented 3 years ago

Can't actually do this. The error has a span inside it (not just a Cow), which doesn't support ways to convert to a static reference.