From e10ded4fd0add481cfd6ea51d28dc658bf8f296e Mon Sep 17 00:00:00 2001 From: Saber Haj Rabiee Date: Fri, 2 May 2025 06:58:01 -0700 Subject: [PATCH] chore: format --- reactive_graph/src/owner/context.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/reactive_graph/src/owner/context.rs b/reactive_graph/src/owner/context.rs index d07f91224..f6384817b 100644 --- a/reactive_graph/src/owner/context.rs +++ b/reactive_graph/src/owner/context.rs @@ -236,11 +236,11 @@ pub fn provide_context(value: T) { /// /// Effect::new(move |_| { /// // each use_context clones the value -/// let value = -/// use_context::().expect("could not find String in context"); +/// let value = use_context::() +/// .expect("could not find String in context"); /// assert_eq!(value, "foo"); -/// let value2 = -/// use_context::().expect("could not find String in context"); +/// let value2 = use_context::() +/// .expect("could not find String in context"); /// assert_eq!(value2, "foo"); /// }); /// }); @@ -284,11 +284,11 @@ pub fn use_context() -> Option { /// /// Effect::new(move |_| { /// // each use_context clones the value -/// let value = -/// use_context::().expect("could not find String in context"); +/// let value = use_context::() +/// .expect("could not find String in context"); /// assert_eq!(value, "foo"); -/// let value2 = -/// use_context::().expect("could not find String in context"); +/// let value2 = use_context::() +/// .expect("could not find String in context"); /// assert_eq!(value2, "foo"); /// }); /// });