all: address clippy lints
This commit is contained in:
parent
498e01a8bb
commit
84d7632341
43 changed files with 170 additions and 149 deletions
|
|
@ -51,7 +51,7 @@ const MODE_PREFERRED: u32 = 2;
|
|||
|
||||
pub struct WlOutputGlobal {
|
||||
pub name: GlobalName,
|
||||
pub state: Rc<State>,
|
||||
pub _state: Rc<State>,
|
||||
pub connector: Rc<ConnectorData>,
|
||||
pub pos: Cell<Rect>,
|
||||
pub output_id: Rc<OutputId>,
|
||||
|
|
@ -127,7 +127,7 @@ impl WlOutputGlobal {
|
|||
);
|
||||
Self {
|
||||
name,
|
||||
state: state.clone(),
|
||||
_state: state.clone(),
|
||||
connector: connector.clone(),
|
||||
pos: Cell::new(Rect::new_sized(x, y, width, height).unwrap()),
|
||||
output_id: output_id.clone(),
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ pub struct ZwlrLayerSurfaceV1 {
|
|||
pub client: Rc<Client>,
|
||||
pub surface: Rc<WlSurface>,
|
||||
pub output: Rc<OutputGlobalOpt>,
|
||||
pub namespace: String,
|
||||
pub _namespace: String,
|
||||
pub tracker: Tracker<Self>,
|
||||
output_extents: Cell<Rect>,
|
||||
pos: Cell<Rect>,
|
||||
|
|
@ -160,7 +160,7 @@ impl ZwlrLayerSurfaceV1 {
|
|||
client: shell.client.clone(),
|
||||
surface: surface.clone(),
|
||||
output: output.clone(),
|
||||
namespace: namespace.to_string(),
|
||||
_namespace: namespace.to_string(),
|
||||
tracker: Default::default(),
|
||||
output_extents: Default::default(),
|
||||
pos: Default::default(),
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ impl WpPresentationRequestHandler for WpPresentation {
|
|||
let fb = Rc::new(WpPresentationFeedback {
|
||||
id: req.callback,
|
||||
client: self.client.clone(),
|
||||
surface: surface.clone(),
|
||||
_surface: surface.clone(),
|
||||
tracker: Default::default(),
|
||||
version: self.version,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use {
|
|||
pub struct WpPresentationFeedback {
|
||||
pub id: WpPresentationFeedbackId,
|
||||
pub client: Rc<Client>,
|
||||
pub surface: Rc<WlSurface>,
|
||||
pub _surface: Rc<WlSurface>,
|
||||
pub tracker: Tracker<Self>,
|
||||
pub version: Version,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ pub struct ZwlrScreencopyFrameV1 {
|
|||
pub tracker: Tracker<Self>,
|
||||
pub output: Rc<OutputGlobalOpt>,
|
||||
pub rect: Rect,
|
||||
pub overlay_cursor: bool,
|
||||
pub _overlay_cursor: bool,
|
||||
pub used: Cell<bool>,
|
||||
pub with_damage: Cell<bool>,
|
||||
pub buffer: Cell<Option<Rc<WlBuffer>>>,
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ impl ZwlrScreencopyManagerV1 {
|
|||
tracker: Default::default(),
|
||||
output: output.global.clone(),
|
||||
rect,
|
||||
overlay_cursor,
|
||||
_overlay_cursor: overlay_cursor,
|
||||
used: Cell::new(false),
|
||||
with_damage: Cell::new(false),
|
||||
buffer: Cell::new(None),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue