diff --git a/packages/yew-macro/src/use_prepared_state.rs b/packages/yew-macro/src/use_prepared_state.rs index 230512d9598..ba8109f7c6e 100644 --- a/packages/yew-macro/src/use_prepared_state.rs +++ b/packages/yew-macro/src/use_prepared_state.rs @@ -21,7 +21,7 @@ impl Parse for PreparedState ReturnType::Default => { return Err(syn::Error::new_spanned( &closure, - "You must specify a return type for this closure.This is used when the \ + "You must specify a return type for this closure. This is used when the \ closure is omitted from the client side rendering bundle.", )) } diff --git a/packages/yew-macro/src/use_transitive_state.rs b/packages/yew-macro/src/use_transitive_state.rs index bdcca330213..f7fde858c29 100644 --- a/packages/yew-macro/src/use_transitive_state.rs +++ b/packages/yew-macro/src/use_transitive_state.rs @@ -21,7 +21,7 @@ impl Parse for TransitiveState { ReturnType::Default => { return Err(syn::Error::new_spanned( &closure, - "You must specify a return type for this closure.This is used when the \ + "You must specify a return type for this closure. This is used when the \ closure is omitted from the client side rendering bundle.", )) } diff --git a/packages/yew/src/functional/hooks/use_transitive_state/feat_ssr.rs b/packages/yew/src/functional/hooks/use_transitive_state/feat_ssr.rs index 74305caf86a..9d680988e84 100644 --- a/packages/yew/src/functional/hooks/use_transitive_state/feat_ssr.rs +++ b/packages/yew/src/functional/hooks/use_transitive_state/feat_ssr.rs @@ -29,7 +29,8 @@ where let f = self.state_fn.borrow_mut().take().unwrap(); let state = f(&self.deps); - let state = bincode::serialize(&(Some(&state), Some(&self.deps))).expect("failed to prepare state"); + let state = + bincode::serialize(&(Some(&state), Some(&self.deps))).expect("failed to prepare state"); Base64::encode_string(&state) } diff --git a/rustfmt.toml b/rustfmt.toml index d3692036517..da3980084a9 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -12,4 +12,3 @@ group_imports = "StdExternalCrate" imports_granularity = "Module" reorder_impl_items = true use_field_init_shorthand = true -edition = "2021"