mirror of
https://github.com/wez/wezterm.git
synced 2024-11-22 13:16:39 +03:00
parent
3028ee4cdd
commit
deb7594eb5
@ -703,6 +703,9 @@ where
|
||||
deserializer.deserialize_any(Number)
|
||||
}
|
||||
|
||||
/// Helper for deserializing a Vec<T> from lua code.
|
||||
/// In lua, `{}` could be either an empty map or an empty vec.
|
||||
/// This helper allows an empty map to be specified and treated as an empty vec.
|
||||
pub fn de_vec_table<'de, D, T>(deserializer: D) -> Result<Vec<T>, D::Error>
|
||||
where
|
||||
D: Deserializer<'de>,
|
||||
|
Loading…
Reference in New Issue
Block a user