wayland.dmabuf: fix doctest

This commit is contained in:
Victor Berger 2021-06-08 21:57:20 +02:00 committed by Victor Berger
parent 5b70ca4206
commit ad444ead75
1 changed files with 1 additions and 2 deletions

View File

@ -32,9 +32,8 @@
//! let dmabuf_global = init_dmabuf_global( //! let dmabuf_global = init_dmabuf_global(
//! &mut display, //! &mut display,
//! formats, //! formats,
//! |buffer, _| { //! |buffer, dispatch_data| {
//! /* validate the dmabuf and import it into your renderer state */ //! /* validate the dmabuf and import it into your renderer state */
//! let dmabuf = buffer.as_ref().user_data().get::<Dmabuf>().expect("dmabuf global sets this for us");
//! true //! true
//! }, //! },
//! None // we don't provide a logger in this example //! None // we don't provide a logger in this example