summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Hakulinen <ville.hakulinen@gmail.com>2020-07-25 19:57:33 +0300
committerVille Hakulinen <ville.hakulinen@gmail.com>2020-07-25 19:57:33 +0300
commitc820c127a779b2630265fe670969ba0747e6a87a (patch)
treeb2a1de82987c342c4b01661f284a88e3b343954c
parenta6a9db12d060bc179792add2e4c17bcd06dcf7e4 (diff)
Cargo fmt & clippy
-rw-r--r--src/ui/state.rs11
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));