Fix a typo

This commit is contained in:
Jonas Platte 2020-06-04 10:44:46 +02:00
parent 35eb0bcfbf
commit 158287204b
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ fn expand_room_event(input: DeriveInput) -> syn::Result<TokenStream> {
.find(|attr| attr.path.is_ident("ruma_event"))
.ok_or_else(|| {
let msg = "no event type attribute found, \
add `#[ruma_events(type = \"any.room.event\")]` \
add `#[ruma_event(type = \"any.room.event\")]` \
below the event content derive";
syn::Error::new(Span::call_site(), msg)

View File

@ -1,4 +1,4 @@
error: no event type attribute found, add `#[ruma_events(type = "any.room.event")]` below the event content derive
error: no event type attribute found, add `#[ruma_event(type = "any.room.event")]` below the event content derive
--> $DIR/02-no-event-type.rs:4:44
|
4 | #[derive(Clone, Debug, Serialize, FromRaw, StateEventContent)]

View File

@ -4,7 +4,7 @@ error: expected `type`
11 | #[ruma_event(event = "m.macro.test")]
| ^^^^^
error: no event type attribute found, add `#[ruma_events(type = "any.room.event")]` below the event content derive
error: no event type attribute found, add `#[ruma_event(type = "any.room.event")]` below the event content derive
--> $DIR/03-invalid-event-type.rs:4:44
|
4 | #[derive(Clone, Debug, Serialize, FromRaw, StateEventContent)]