Skip to content

Commit

Permalink
Fix formatting inside context macro (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur authored Dec 11, 2024
1 parent 65ecc25 commit d5f1cd1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions masonry/src/contexts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl_context_method!(
);

// Methods for all exclusive context types (i.e. those which have exclusive access to the global state).
impl_context_method! {
impl_context_method!(
AccessCtx<'_>,
ComposeCtx<'_>,
EventCtx<'_>,
Expand All @@ -212,12 +212,14 @@ impl_context_method! {
///
/// Note that in many cases, these contexts are.
pub fn text_contexts(&mut self) -> (&mut FontContext, &mut LayoutContext<BrushIndex>) {
(
&mut self.global_state.font_context,
&mut self.global_state.text_layout_context,
)
(
&mut self.global_state.font_context,
&mut self.global_state.text_layout_context,
)
}
}
}}
);

// --- MARK: GET LAYOUT ---
// Methods on all context types except LayoutCtx
// These methods access layout info calculated during the layout pass.
Expand Down

0 comments on commit d5f1cd1

Please sign in to comment.