diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-09-10 11:46:55 +0200 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-09-10 11:46:55 +0200 |
| commit | 0fa8c54f83bbd0372cffc8ec396f67a8596b10ac (patch) | |
| tree | 9cb5fdb6fe03f776af5836db90be028def2c6293 | |
| parent | chore: move from unmaintained ansi_term to anstyle (diff) | |
| download | sl0pstatus-0fa8c54f83bbd0372cffc8ec396f67a8596b10ac.tar.gz sl0pstatus-0fa8c54f83bbd0372cffc8ec396f67a8596b10ac.tar.xz sl0pstatus-0fa8c54f83bbd0372cffc8ec396f67a8596b10ac.zip | |
chore: raise rust-toolchain + add components
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | flake.nix | 8 | ||||
| -rw-r--r-- | rust-toolchain | 2 | ||||
| -rw-r--r-- | src/config.rs | 1 | ||||
| -rw-r--r-- | src/main.rs | 7 |
5 files changed, 11 insertions, 9 deletions
@@ -14,7 +14,7 @@  <details> -<summary>Examples</summary> +<summary><h3>Examples</h3></summary> <b><a href="./examples/tmux.kdl">tmux style</a></b> <img src="./examples/tmux.png" alt="tmux style bar" /> <br> @@ -29,6 +29,7 @@ }; rustWithWasiTarget = pkgs.rust-bin.stable.latest.default.override { + extensions = [ "rust-src" "rust-std" "rust-analyzer" ]; targets = [ "wasm32-wasi" ]; }; @@ -49,9 +50,9 @@ buildInputs = [ # Add additional build inputs here + pkgs.libiconv ] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ # Additional darwin specific inputs can be set here - pkgs.libiconv ]; }; in @@ -69,16 +70,15 @@ # Extra inputs can be added here; cargo and rustc are provided by default # from the toolchain that was specified earlier. packages = with pkgs; [ - # rustWithWasiTarget + rustWithWasiTarget cargo-audit cargo-watch cargo-wasi clippy - rust-analyzer + libiconv wasmtime ]; }; } ); - } diff --git a/rust-toolchain b/rust-toolchain index 4934985..0834888 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.69.0 +1.72.0 diff --git a/src/config.rs b/src/config.rs index b0c6f69..bf98727 100644 --- a/src/config.rs +++ b/src/config.rs @@ -152,7 +152,6 @@ impl ModuleConfig { } wid.process_click(state.clone(), click_pos - pos + offset); - } rendered_output.len() diff --git a/src/main.rs b/src/main.rs index ef189ce..873abf8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -66,8 +66,11 @@ impl ZellijPlugin for State { let mut should_render = false; match event { Event::Mouse(mouse_info) => { - self.module_config - .handle_mouse_action(self.state.clone(), mouse_info, self.widget_map.clone()); + self.module_config.handle_mouse_action( + self.state.clone(), + mouse_info, + self.widget_map.clone(), + ); } Event::ModeUpdate(mode_info) => { self.state.mode = mode_info; |
