Skip to content

Commit

Permalink
Fix cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Apr 30, 2022
1 parent 3faa58c commit ee5caea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/yew-macro/src/use_prepared_state.rs
Expand Up @@ -21,7 +21,7 @@ impl<const WITH_ASYNC_CLOSURE: bool> Parse for PreparedState<WITH_ASYNC_CLOSURE>
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.",
))
}
Expand Down
2 changes: 1 addition & 1 deletion packages/yew-macro/src/use_transitive_state.rs
Expand Up @@ -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.",
))
}
Expand Down
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion rustfmt.toml
Expand Up @@ -12,4 +12,3 @@ group_imports = "StdExternalCrate"
imports_granularity = "Module"
reorder_impl_items = true
use_field_init_shorthand = true
edition = "2021"

0 comments on commit ee5caea

Please sign in to comment.