diff options
author | Ville Hakulinen <ville.hakulinen@gmail.com> | 2020-07-25 19:57:33 +0300 |
---|---|---|
committer | Ville Hakulinen <ville.hakulinen@gmail.com> | 2020-07-25 19:57:33 +0300 |
commit | c820c127a779b2630265fe670969ba0747e6a87a (patch) | |
tree | b2a1de82987c342c4b01661f284a88e3b343954c | |
parent | a6a9db12d060bc179792add2e4c17bcd06dcf7e4 (diff) |
Cargo fmt & clippy
-rw-r--r-- | src/ui/state.rs | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/state.rs b/src/ui/state.rs index 1fac6fa..1ffd960 100644 --- a/src/ui/state.rs +++ b/src/ui/state.rs @@ -542,11 +542,7 @@ impl UIState { self.cmdline.hide_block(); } - fn window_pos( - &mut self, - evt: WindowPos, - nvim: &GioNeovim, - ) { + fn window_pos(&mut self, evt: WindowPos, nvim: &GioNeovim) { let base_metrics = self.grids.get(&1).unwrap().get_grid_metrics(); let x = evt.start_col as f64 * base_metrics.cell_width; let y = evt.start_row as f64 * base_metrics.cell_height; @@ -680,7 +676,7 @@ impl UIState { evt.grid, self.windows_float_container.clone().upcast(), nvim, - evt.win.clone(), + evt.win, ); window.set_external( @@ -794,8 +790,7 @@ impl UIState { } RedrawEvent::CmdlineBlockHide() => self.cmdline_block_hide(), RedrawEvent::WindowPos(evt) => { - evt.into_iter() - .for_each(|e| self.window_pos(e, nvim)); + evt.into_iter().for_each(|e| self.window_pos(e, nvim)); } RedrawEvent::WindowFloatPos(evt) => { evt.into_iter().for_each(|e| self.window_float_pos(e, nvim)); |