Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting inside context macro #783

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading