ruwuma/ruma-events/tests/ui/08-enum-invalid-path.rs
Ragotzy.devin 184aafa5f6
Revert " Remove event_enum! and only use event_content_enum"
This reverts commit 2a91dc1eb7215a762bd2204bc103ef172258d2d9. Also

* Add back type defs and Any*Event enums
* Move EventDeHelper and from_raw_json_value to lib make pub so event_enum! macro can use them and test. 
* Fix Any*Event enum deserialization error
* Remove event_content_enum! macro and ruma-events-macros/src/content_enum.rs
* Use serde's IgnoreAny to skip Unknown field's value
* Clean up imports and test names for state_event
2020-06-19 11:36:53 +02:00

18 lines
218 B
Rust

use ruma_events_macros::event_enum;
event_enum! {
name: InvalidEvent,
events: [
"m.not.a.path",
]
}
event_enum! {
name: InvalidEvent,
events: [
"not.a.path",
]
}
fn main() {}