Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ealmloff committed May 29, 2024
1 parent 8028cf7 commit 9fea202
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions packages/hooks/src/use_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,5 @@ pub fn use_context<T: 'static + Clone>() -> T {
///}
/// ```
pub fn use_context_provider<T: 'static + Clone>(f: impl FnOnce() -> T) -> T {
use_hook(|| {
provide_context(f())
})
use_hook(|| provide_context(f()))
}

0 comments on commit 9fea202

Please sign in to comment.