See if `ident` instead of `expr` does the trick
/// ```
#[macro_export]
macro_rules! staticvec {
- ($val:expr) => {
- $crate::StaticVec::from($val)
+ ($($val:expr),* $(,)*) => {
+ $crate::StaticVec::new_from_const_array([$($val),*])
};
($val:expr; $n:expr) => {
$crate::StaticVec::new_from_const_array([$val; $n])
};
- ($($val:expr),* $(,)*) => {
- $crate::StaticVec::new_from_const_array([$($val),*])
+ ($val:ident) => {
+ $crate::StaticVec::new_from_const_array($val)
};
}
