Skip to content

zv: Broaden `Error` restriction on `TryFrom` bounds, implement `TryFrom<Value<'a>>` for `HashMap`

Ian Douglas Scott requested to merge ids1024/zbus:try_from into main
  • This allows conversion as long as the error type implements Into<crate::Error>, instead of only for crate::Error. In particular, infallible conversions now apply here.
  • HashMap already implemented TryFrom<OwnedValue>. Also implement TryFrom<Value<'a>>.

With both of these changes, #135 (closed) is fixed.

Edited by Ian Douglas Scott

Merge request reports