diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-18 09:45:03 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-18 09:45:03 +0200 |
| commit | dc067580f3df50bff17aee48fb330c164084c6bd (patch) | |
| tree | 3b83041d68fe0135df8408b5695a5c37f542f2c8 /src/common | |
| parent | Merge branch 'main' of https://github.com/zellij-org/zellij into layout-path-506 (diff) | |
| download | sl0ppij-dc067580f3df50bff17aee48fb330c164084c6bd.tar.gz sl0ppij-dc067580f3df50bff17aee48fb330c164084c6bd.tar.xz sl0ppij-dc067580f3df50bff17aee48fb330c164084c6bd.zip | |
Fix Clippy Suggestions
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/ipc.rs | 2 | ||||
| -rw-r--r-- | src/common/screen.rs | 5 |
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; |
