From ad444ead75af34033dbff84b230f7ba2b3b54423 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Tue, 8 Jun 2021 21:57:20 +0200 Subject: [PATCH] wayland.dmabuf: fix doctest --- src/wayland/dmabuf/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wayland/dmabuf/mod.rs b/src/wayland/dmabuf/mod.rs index eb6bfa0..5fc3831 100644 --- a/src/wayland/dmabuf/mod.rs +++ b/src/wayland/dmabuf/mod.rs @@ -32,9 +32,8 @@ //! let dmabuf_global = init_dmabuf_global( //! &mut display, //! formats, -//! |buffer, _| { +//! |buffer, dispatch_data| { //! /* validate the dmabuf and import it into your renderer state */ -//! let dmabuf = buffer.as_ref().user_data().get::().expect("dmabuf global sets this for us"); //! true //! }, //! None // we don't provide a logger in this example