diff --git a/src/backends/cg.rs b/src/backends/cg.rs index ba957d85..8b30dc95 100644 --- a/src/backends/cg.rs +++ b/src/backends/cg.rs @@ -144,7 +144,10 @@ impl Drop for CGImpl { impl SurfaceInterface for CGImpl { type Context = D; - type Buffer<'a> = BufferImpl<'a, D, W> where Self: 'a; + type Buffer<'a> + = BufferImpl<'a, D, W> + where + Self: 'a; fn new(window_src: W, _display: &D) -> Result> { // `NSView`/`UIView` can only be accessed from the main thread. diff --git a/src/backends/kms.rs b/src/backends/kms.rs index 901fc738..8dca03e5 100644 --- a/src/backends/kms.rs +++ b/src/backends/kms.rs @@ -134,7 +134,10 @@ struct SharedBuffer { impl SurfaceInterface for KmsImpl { type Context = Arc>; - type Buffer<'a> = BufferImpl<'a, D, W> where Self: 'a; + type Buffer<'a> + = BufferImpl<'a, D, W> + where + Self: 'a; /// Create a new KMS backend. fn new(window: W, display: &Arc>) -> Result> { diff --git a/src/backends/orbital.rs b/src/backends/orbital.rs index 96c3db1d..c6ff3004 100644 --- a/src/backends/orbital.rs +++ b/src/backends/orbital.rs @@ -128,7 +128,10 @@ impl OrbitalImpl { impl SurfaceInterface for OrbitalImpl { type Context = D; - type Buffer<'a> = BufferImpl<'a, D, W> where Self: 'a; + type Buffer<'a> + = BufferImpl<'a, D, W> + where + Self: 'a; fn new(window: W, _display: &D) -> Result> { let raw = window.window_handle()?.as_raw(); diff --git a/src/backends/wayland/mod.rs b/src/backends/wayland/mod.rs index 2dda8d2b..a5b00aa9 100644 --- a/src/backends/wayland/mod.rs +++ b/src/backends/wayland/mod.rs @@ -151,7 +151,10 @@ impl SurfaceInterface for WaylandImpl { type Context = Arc>; - type Buffer<'a> = BufferImpl<'a, D, W> where Self: 'a; + type Buffer<'a> + = BufferImpl<'a, D, W> + where + Self: 'a; fn new(window: W, display: &Arc>) -> Result> { // Get the raw Wayland window. diff --git a/src/backends/web.rs b/src/backends/web.rs index 539e2d2a..b9579da1 100644 --- a/src/backends/web.rs +++ b/src/backends/web.rs @@ -207,7 +207,10 @@ impl WebImpl { impl SurfaceInterface for WebImpl { type Context = WebDisplayImpl; - type Buffer<'a> = BufferImpl<'a, D, W> where Self: 'a; + type Buffer<'a> + = BufferImpl<'a, D, W> + where + Self: 'a; fn new(window: W, display: &WebDisplayImpl) -> Result> { let raw = window.window_handle()?.as_raw(); diff --git a/src/backends/win32.rs b/src/backends/win32.rs index 084ad47b..840a99c4 100644 --- a/src/backends/win32.rs +++ b/src/backends/win32.rs @@ -208,7 +208,10 @@ impl Win32Impl { impl SurfaceInterface for Win32Impl { type Context = D; - type Buffer<'a> = BufferImpl<'a, D, W> where Self: 'a; + type Buffer<'a> + = BufferImpl<'a, D, W> + where + Self: 'a; /// Create a new `Win32Impl` from a `Win32WindowHandle`. fn new(window: W, _display: &D) -> Result> { diff --git a/src/backends/x11.rs b/src/backends/x11.rs index b01fb5f3..44aa770e 100644 --- a/src/backends/x11.rs +++ b/src/backends/x11.rs @@ -184,7 +184,10 @@ struct ShmBuffer { impl SurfaceInterface for X11Impl { type Context = Arc>; - type Buffer<'a> = BufferImpl<'a, D, W> where Self: 'a; + type Buffer<'a> + = BufferImpl<'a, D, W> + where + Self: 'a; /// Create a new `X11Impl` from a `HasWindowHandle`. fn new(window_src: W, display: &Arc>) -> Result> {