diff --git a/src/panes/terminal_pane.rs b/src/panes/terminal_pane.rs index 3c5b203a..0d04c681 100644 --- a/src/panes/terminal_pane.rs +++ b/src/panes/terminal_pane.rs @@ -14,7 +14,6 @@ use crate::VteEvent; pub enum PaneId { Terminal(RawFd), Plugin(u32), // FIXME: Drop the trait object, make this a wrapper for the struct? - BuiltIn(u32), } #[derive(Clone, Copy, Debug, Default)] pub struct PositionAndSize { diff --git a/src/pty_bus.rs b/src/pty_bus.rs index 092998a2..fdc8b889 100644 --- a/src/pty_bus.rs +++ b/src/pty_bus.rs @@ -297,6 +297,6 @@ impl PtyBus { } } pub fn close_tab(&mut self, ids: Vec) { - ids.iter().for_each(|id| self.close_pane(*id)); + ids.iter().for_each(|&id| self.close_pane(id)); } }