From abcaa4d3f7945cf3c3619a1d29cdf362a47937ac Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Fri, 1 Apr 2022 17:17:47 +0200 Subject: [PATCH] events: Remove unnecessary duplication from trybuild testcase --- crates/ruma-common/tests/events/ui/08-enum-invalid-path.rs | 6 ------ .../ruma-common/tests/events/ui/08-enum-invalid-path.stderr | 6 ------ 2 files changed, 12 deletions(-) diff --git a/crates/ruma-common/tests/events/ui/08-enum-invalid-path.rs b/crates/ruma-common/tests/events/ui/08-enum-invalid-path.rs index 14bd2348..e1362737 100644 --- a/crates/ruma-common/tests/events/ui/08-enum-invalid-path.rs +++ b/crates/ruma-common/tests/events/ui/08-enum-invalid-path.rs @@ -6,12 +6,6 @@ event_enum! { } } -event_enum! { - enum State { - "not.a.path", - } -} - fn main() {} #[doc(hidden)] diff --git a/crates/ruma-common/tests/events/ui/08-enum-invalid-path.stderr b/crates/ruma-common/tests/events/ui/08-enum-invalid-path.stderr index d78901b6..717b0e4b 100644 --- a/crates/ruma-common/tests/events/ui/08-enum-invalid-path.stderr +++ b/crates/ruma-common/tests/events/ui/08-enum-invalid-path.stderr @@ -1,9 +1,3 @@ -error: well-known matrix events have to start with `m.` found `not.a.path` - --> tests/events/ui/08-enum-invalid-path.rs:11:9 - | -11 | "not.a.path", - | ^^^^^^^^^^^^ - error[E0433]: failed to resolve: could not find `not` in `events` --> tests/events/ui/08-enum-invalid-path.rs:5:9 |