removed unnecessary clones
This commit is contained in:
parent
5b834f62a9
commit
3e44479223
2 changed files with 2 additions and 3 deletions
|
@ -49,7 +49,7 @@ impl pointer::Handler for Pointer {
|
|||
|
||||
let shell_handle = &state.shells[0];
|
||||
let seat_handle = state.seat_handle.clone().unwrap();
|
||||
let keyboard_handle = state.keyboards[0].clone();
|
||||
let keyboard_handle = &state.keyboards[0];
|
||||
|
||||
use shell_handle as shell;
|
||||
match shell.state() {
|
||||
|
|
|
@ -28,9 +28,8 @@ impl output::Handler for Output {
|
|||
|
||||
#[wlroots_dehandle(shell, surface, layout)]
|
||||
fn render_shells(state: &mut CompositorState, renderer: &mut Renderer) {
|
||||
let shells = state.shells.clone();
|
||||
let layout_handle = &state.layout_handle;
|
||||
for shell_handle in shells {
|
||||
for shell_handle in &state.shells {
|
||||
use shell_handle as shell;
|
||||
let surface_handle = shell.surface();
|
||||
use layout_handle as layout;
|
||||
|
|
Loading…
Reference in a new issue