From 0c54f9ec94e6e7f358b27568f0498e93510fbbd9 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Tue, 7 May 2024 20:23:56 -0700 Subject: [PATCH] chore: fmt Signed-off-by: John Nunley --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e859fb4..6f6e512 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,14 +34,17 @@ pub struct Context { context_impl: ContextDispatch, /// This is Send+Sync IFF D is Send+Sync. - _marker: PhantomData> + _marker: PhantomData>, } impl Context { /// Creates a new instance of this struct, using the provided display. pub fn new(display: D) -> Result { match ContextDispatch::new(display) { - Ok(context_impl) => Ok(Self { context_impl, _marker: PhantomData }), + Ok(context_impl) => Ok(Self { + context_impl, + _marker: PhantomData, + }), Err(InitError::Unsupported(display)) => { let raw = display.display_handle()?.as_raw(); Err(SoftBufferError::UnsupportedDisplayPlatform {