error[E0080]: evaluation panicked: a path segment cannot be empty
--> tests/fails/static_path_empty_segment.rs:3:30
|
3 | static NAMELESS: StorePath = StorePath::from_static(&["ui", "", "width"], "ui..width");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `NAMELESS` failed inside this call
|
note: inside `StorePath::from_static`
--> $WORKSPACE/crates/core/amethystate-core/src/path.rs
|
| check_static(segments, joined);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `amethystate_core::path::check_static`
--> $RUST/core/src/panic.rs
|
| $crate::panicking::panic_fmt($crate::const_format_args!($($t)+));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
|
::: $WORKSPACE/crates/core/amethystate-core/src/path.rs
|
| panic!("a path segment cannot be empty");
| ---------------------------------------- in this macro invocation