mirror of
https://github.com/fluencelabs/interface-types
synced 2025-06-30 23:21:37 +00:00
feat(interface-types) InterfaceValue::Record
now takes a Vec1
.
It matches the definition of `InterfaceType::Record`.
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
//! Collection of helpful macros.
|
||||
|
||||
/// This macro creates a `Vec1` by checking at compile-time that its
|
||||
/// invariant holds.
|
||||
#[allow(unused)]
|
||||
#[macro_export]
|
||||
macro_rules! vec1 {
|
||||
($item:expr; 0) => {
|
||||
compile_error!("Cannot create an empty `Vec1`, it violates its invariant.")
|
||||
|
Reference in New Issue
Block a user