@@ -76,7 +76,7 @@ macro_rules! make_dispatch {
7676
7777 impl <D : HasDisplayHandle , W : HasWindowHandle > SurfaceInterface <D , W > for SurfaceDispatch <D , W > {
7878 type Context = ContextDispatch <D >;
79- type Buffer <' a> = BufferDispatch <' a, D , W > where Self : ' a;
79+ type Buffer <' a> = BufferDispatch <' a> where Self : ' a;
8080
8181 fn new( window: W , display: & Self :: Context ) -> Result <Self , InitError <W >>
8282 where
@@ -108,7 +108,7 @@ macro_rules! make_dispatch {
108108 }
109109 }
110110
111- fn buffer_mut( & mut self ) -> Result <BufferDispatch <' _, D , W >, SoftBufferError > {
111+ fn buffer_mut( & mut self ) -> Result <BufferDispatch <' _>, SoftBufferError > {
112112 match self {
113113 $(
114114 $( #[ $attr] ) *
@@ -138,14 +138,14 @@ macro_rules! make_dispatch {
138138 }
139139 }
140140
141- pub ( crate ) enum BufferDispatch <' a, $dgen , $wgen > {
141+ pub ( crate ) enum BufferDispatch <' a> {
142142 $(
143143 $( #[ $attr] ) *
144144 $name( $buffer_inner) ,
145145 ) *
146146 }
147147
148- impl < ' a , D : HasDisplayHandle , W : HasWindowHandle > BufferInterface for BufferDispatch <' a , D , W > {
148+ impl BufferInterface for BufferDispatch <' _ > {
149149 #[ inline]
150150 fn width( & self ) -> NonZeroU32 {
151151 match self {
@@ -214,7 +214,7 @@ macro_rules! make_dispatch {
214214 }
215215 }
216216
217- impl < D : fmt:: Debug , W : fmt :: Debug > fmt :: Debug for BufferDispatch <' _, D , W > {
217+ impl fmt:: Debug for BufferDispatch <' _> {
218218 fn fmt( & self , f: & mut fmt:: Formatter <' _>) -> fmt:: Result {
219219 match self {
220220 $(
@@ -232,7 +232,7 @@ macro_rules! make_dispatch {
232232make_dispatch ! {
233233 <D , W > =>
234234 #[ cfg( target_os = "android" ) ]
235- Android ( D , backends:: android:: AndroidImpl <D , W >, backends:: android:: BufferImpl <' a, D , W >) ,
235+ Android ( D , backends:: android:: AndroidImpl <D , W >, backends:: android:: BufferImpl <' a>) ,
236236 #[ cfg( all(
237237 feature = "x11" ,
238238 not( any(
@@ -243,7 +243,7 @@ make_dispatch! {
243243 target_os = "windows"
244244 ) )
245245 ) ) ]
246- X11 ( std:: sync:: Arc <backends:: x11:: X11DisplayImpl <D >>, backends:: x11:: X11Impl <D , W >, backends:: x11:: BufferImpl <' a, D , W >) ,
246+ X11 ( std:: sync:: Arc <backends:: x11:: X11DisplayImpl <D >>, backends:: x11:: X11Impl <D , W >, backends:: x11:: BufferImpl <' a>) ,
247247 #[ cfg( all(
248248 feature = "wayland" ,
249249 not( any(
@@ -254,7 +254,7 @@ make_dispatch! {
254254 target_os = "windows"
255255 ) )
256256 ) ) ]
257- Wayland ( std:: sync:: Arc <backends:: wayland:: WaylandDisplayImpl <D >>, backends:: wayland:: WaylandImpl <D , W >, backends:: wayland:: BufferImpl <' a, D , W >) ,
257+ Wayland ( std:: sync:: Arc <backends:: wayland:: WaylandDisplayImpl <D >>, backends:: wayland:: WaylandImpl <D , W >, backends:: wayland:: BufferImpl <' a>) ,
258258 #[ cfg( all(
259259 feature = "kms" ,
260260 not( any(
@@ -265,13 +265,13 @@ make_dispatch! {
265265 target_os = "windows"
266266 ) )
267267 ) ) ]
268- Kms ( std:: sync:: Arc <backends:: kms:: KmsDisplayImpl <D >>, backends:: kms:: KmsImpl <D , W >, backends:: kms:: BufferImpl <' a, D , W >) ,
268+ Kms ( std:: sync:: Arc <backends:: kms:: KmsDisplayImpl <D >>, backends:: kms:: KmsImpl <D , W >, backends:: kms:: BufferImpl <' a>) ,
269269 #[ cfg( target_os = "windows" ) ]
270- Win32 ( D , backends:: win32:: Win32Impl <D , W >, backends:: win32:: BufferImpl <' a, D , W >) ,
270+ Win32 ( D , backends:: win32:: Win32Impl <D , W >, backends:: win32:: BufferImpl <' a>) ,
271271 #[ cfg( target_vendor = "apple" ) ]
272- CoreGraphics ( D , backends:: cg:: CGImpl <D , W >, backends:: cg:: BufferImpl <' a, D , W >) ,
272+ CoreGraphics ( D , backends:: cg:: CGImpl <D , W >, backends:: cg:: BufferImpl <' a>) ,
273273 #[ cfg( target_family = "wasm" ) ]
274- Web ( backends:: web:: WebDisplayImpl <D >, backends:: web:: WebImpl <D , W >, backends:: web:: BufferImpl <' a, D , W >) ,
274+ Web ( backends:: web:: WebDisplayImpl <D >, backends:: web:: WebImpl <D , W >, backends:: web:: BufferImpl <' a>) ,
275275 #[ cfg( target_os = "redox" ) ]
276- Orbital ( D , backends:: orbital:: OrbitalImpl <D , W >, backends:: orbital:: BufferImpl <' a, D , W >) ,
276+ Orbital ( D , backends:: orbital:: OrbitalImpl <D , W >, backends:: orbital:: BufferImpl <' a>) ,
277277}
0 commit comments