Skip to content

Commit fd79b58

Browse files
committed
rustfmt nightly
1 parent b5199be commit fd79b58

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/yew-macro/src/autoprops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl syn::parse::Parse for Autoprops {
5959
syn::Error::new_spanned(
6060
sig,
6161
"could not find #[function_component] attribute in function declaration \
62-
(#[autoprops] must be place *before* #[function_component])",
62+
(#[autoprops] must be place *before* #[function_component])",
6363
)
6464
})?;
6565

packages/yew-macro/src/function_component.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ impl Parse for FunctionComponent {
137137
}
138138
ty => {
139139
let msg = format!(
140-
"expected a reference to a `Properties` type \
141-
(try: `&{}` or use #[autoprops])",
140+
"expected a reference to a `Properties` type (try: `&{}` or use \
141+
#[autoprops])",
142142
ty.to_token_stream()
143143
);
144144
return Err(syn::Error::new_spanned(ty, msg));
@@ -160,8 +160,8 @@ impl Parse for FunctionComponent {
160160
let params: TokenStream = inputs.map(|it| it.to_token_stream()).collect();
161161
return Err(syn::Error::new_spanned(
162162
params,
163-
"function components can accept at most one parameter for the props, \
164-
maybe you wanted to use #[autoprops]?",
163+
"function components can accept at most one parameter for the props, maybe you \
164+
wanted to use #[autoprops]?",
165165
));
166166
}
167167

0 commit comments

Comments
 (0)