1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00
wezterm/lua-api-crates
Jalil David Salamé Messina d541e2e13d fix(clippy): Remove closures where possible
- Removes closures and function calls for types that implement default:

  ```rust
  // Change
  let _my_str = get_str().unwrap_or(String::new);
  // To
  let _my_str = get_str().unwrap_or_default();
  ```

- Uses the `.cloned()/.copied()` methods where possible
- Use function pointer instead of simple closure

May improve performace, as closures generate more code, and this might
unlock some inlining opportunities.
2023-03-19 08:41:38 -07:00
..
battery fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
color-funcs fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
filesystem fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
json fix(clippy): Remove unnecessary clone/to_string calls 2023-03-16 07:40:12 -07:00
logging config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
mux fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
plugin fix: rewrite . when fetching path in lua plugin crate 2023-03-17 11:57:30 -07:00
procinfo-funcs lua: add wezterm.procinfo module 2022-07-16 08:49:58 -07:00
share-data fix(clippy): Remove unnecessary clone/to_string calls 2023-03-16 07:40:12 -07:00
spawn-funcs fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
ssh-funcs config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
termwiz-funcs fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
time-funcs fix time.call_after when used inside an event callback 2023-03-19 07:22:14 -07:00
window-funcs macos: report max_fps in ScreenInfo 2022-08-19 21:02:51 -07:00
README.md config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00

The crates in this directory provide modules and functions to wezterm's lua config file and interface.

They are registered into the lua config via env-bootstrap.

It is advantageous to build times to have multiple, smaller, crates.