Fix a typo
This commit is contained in:
parent
35eb0bcfbf
commit
158287204b
@ -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)
|
||||
|
@ -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)]
|
||||
|
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user