aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-05-18 09:45:03 +0200
committera-kenji <aks.kenji@protonmail.com>2021-05-18 09:45:03 +0200
commitdc067580f3df50bff17aee48fb330c164084c6bd (patch)
tree3b83041d68fe0135df8408b5695a5c37f542f2c8 /src/common
parentMerge branch 'main' of https://github.com/zellij-org/zellij into layout-path-506 (diff)
downloadsl0ppij-dc067580f3df50bff17aee48fb330c164084c6bd.tar.gz
sl0ppij-dc067580f3df50bff17aee48fb330c164084c6bd.tar.xz
sl0ppij-dc067580f3df50bff17aee48fb330c164084c6bd.zip
Fix Clippy Suggestions
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ipc.rs2
-rw-r--r--src/common/screen.rs5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/common/ipc.rs b/src/common/ipc.rs
index 129727a1..af6dd859 100644
--- a/src/common/ipc.rs
+++ b/src/common/ipc.rs
@@ -47,7 +47,7 @@ pub enum ClientToServerMsg {
DisconnectFromSession,*/
ClientExit,
TerminalResize(PositionAndSize),
- NewClient(PositionAndSize, CliArgs, Options),
+ NewClient(PositionAndSize, Box<CliArgs>, Box<Options>),
Action(Action),
}
diff --git a/src/common/screen.rs b/src/common/screen.rs
index 62fcec19..d2030243 100644
--- a/src/common/screen.rs
+++ b/src/common/screen.rs
@@ -325,11 +325,14 @@ impl Screen {
}
}
+// The box is here in order to make the
+// NewClient enum smaller
+#[allow(clippy::boxed_local)]
pub fn screen_thread_main(
bus: Bus<ScreenInstruction>,
max_panes: Option<usize>,
full_screen_ws: PositionAndSize,
- config_options: Options,
+ config_options: Box<Options>,
) {
let colors = bus.os_input.as_ref().unwrap().load_palette();
let capabilities = config_options.simplified_ui;