1
0
Fork 0
forked from wry/wry

all: run rustfmt

This commit is contained in:
Julian Orth 2022-05-06 16:47:54 +02:00
parent d2913449ea
commit ce183a0f45
5 changed files with 22 additions and 15 deletions

View file

@ -1,5 +1,3 @@
use std::cell::RefCell;
use std::ops::Deref;
use {
crate::{
client::{Client, ClientError},
@ -12,15 +10,18 @@ use {
utils::{
buffd::{MsgParser, MsgParserError},
clonecell::CloneCell,
errorfmt::ErrorFmt,
},
wire::{wl_buffer::*, WlBufferId},
video::dmabuf::DmaBuf,
wire::{jay_screenshot::Dmabuf, wl_buffer::*, WlBufferId},
},
std::{
cell::{Cell, RefCell},
ops::Deref,
rc::Rc,
},
std::{cell::Cell, rc::Rc},
thiserror::Error,
};
use crate::utils::errorfmt::ErrorFmt;
use crate::video::dmabuf::DmaBuf;
use crate::wire::jay_screenshot::Dmabuf;
pub enum WlBufferStorage {
Shm { mem: ClientMemOffset, stride: i32 },
@ -135,7 +136,10 @@ impl WlBuffer {
let image = match ctx.dmabuf_img(dmabuf) {
Ok(image) => image,
Err(e) => {
log::error!("Cannot re-import wl_buffer after graphics context reset: {}", ErrorFmt(e));
log::error!(
"Cannot re-import wl_buffer after graphics context reset: {}",
ErrorFmt(e)
);
return;
}
};