Skip to content
Snippets Groups Projects
  1. Dec 16, 2024
  2. Dec 13, 2024
  3. Dec 11, 2024
  4. Dec 10, 2024
  5. Dec 09, 2024
  6. Dec 06, 2024
  7. Dec 05, 2024
  8. Dec 04, 2024
  9. Dec 03, 2024
  10. Dec 02, 2024
    • Maksim Kaitmazian's avatar
      fix: deserialize LuaValue as rmpv::Value · 0f7aa571
      Maksim Kaitmazian authored
      Previously, LuaValue was used for deserializing msgpack data.
      It is marked with #[serde(untagged)] attribute, meaning that
      the enum is deserializaed by probing each variant in order unless one
      succeeds. It turned out, that this can cause unexpected type convertions
      due to the order of variants.
      
      For example, msgpack integer value was deserialized into LuaValue::Double,
      because this variant comes before LuaValue::Integer and integer values
      can be represented as floats.
      
      This commit resolves this issue by configuring LuaValue to be deserialized
      as rmpv::Value using #[serde(try_from)] attribute.
      0f7aa571
  11. Nov 30, 2024
  12. Nov 29, 2024
Loading