@@ -98,19 +98,20 @@ impl Transform {
9898 }
9999}
100100
101- #[ cfg( feature = "wayland-frontend " ) ]
101+ #[ cfg( feature = "wayland_frontend " ) ]
102102impl From < wayland_server:: protocol:: wl_output:: Transform > for Transform {
103103 fn from ( transform : wayland_server:: protocol:: wl_output:: Transform ) -> Transform {
104- use wayland_server:: protocol:: wl_output:: Transform :: * ;
104+ use wayland_server:: protocol:: wl_output:: Transform as WlTransform ;
105105 match transform {
106- Normal => Transform :: Normal ,
107- _90 => Transform :: _90,
108- _180 => Transform :: _180,
109- _270 => Transform :: _270,
110- Flipped => Transform :: Flipped ,
111- Flipped90 => Transform :: Flipped90 ,
112- Flipped180 => Transform :: Flipped180 ,
113- Flipped270 => Transform :: Flipped270 ,
106+ WlTransform :: Normal => Transform :: Normal ,
107+ WlTransform :: _90 => Transform :: _90,
108+ WlTransform :: _180 => Transform :: _180,
109+ WlTransform :: _270 => Transform :: _270,
110+ WlTransform :: Flipped => Transform :: Flipped ,
111+ WlTransform :: Flipped90 => Transform :: Flipped90 ,
112+ WlTransform :: Flipped180 => Transform :: Flipped180 ,
113+ WlTransform :: Flipped270 => Transform :: Flipped270 ,
114+ _ => Transform :: Normal ,
114115 }
115116 }
116117}
@@ -319,11 +320,12 @@ pub trait ImportEgl: Renderer {
319320 ///
320321 /// ## Errors
321322 ///
322- /// This might return [`EglExtensionNotSupported`](Error::EglExtensionNotSupported)
323+ /// This might return [`EglExtensionNotSupported`](super::egl:: Error::EglExtensionNotSupported)
323324 /// if binding is not supported by the EGL implementation.
324325 ///
325- /// This might return [`OtherEGLDisplayAlreadyBound`](Error::OtherEGLDisplayAlreadyBound)
326- /// if called for the same [`Display`] multiple times, as only one egl display may be bound at any given time.
326+ /// This might return [`OtherEGLDisplayAlreadyBound`](super::egl::Error::OtherEGLDisplayAlreadyBound)
327+ /// if called for the same [`Display`](wayland_server::Display) multiple times, as only one egl
328+ /// display may be bound at any given time.
327329 fn bind_wl_display ( & mut self , display : & wayland_server:: Display ) -> Result < ( ) , EglError > ;
328330
329331 /// Unbinds a previously bound egl display, if existing.
@@ -336,8 +338,8 @@ pub trait ImportEgl: Renderer {
336338 ///
337339 /// The primary use for this is calling [`buffer_dimensions`] or [`buffer_type`].
338340 ///
339- /// Returns `None` if no [`Display`] was previously bound to the underlying [`EGLDisplay`]
340- /// (see [`ImportEgl::bind_wl_display`]).
341+ /// Returns `None` if no [`Display`](wayland_server::Display) was previously bound to the underlying
342+ /// [`EGLDisplay`](super::egl::EGLDisplay) (see [`ImportEgl::bind_wl_display`]).
341343 fn egl_reader ( & self ) -> Option < & EGLBufferReader > ;
342344
343345 /// Import a given wl_drm-based buffer into the renderer (see [`buffer_type`]).
0 commit comments