1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00
wezterm/window/src
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
..
bitmaps erase generic T from Atlas, Sprite, CachedGlyph etc. 2022-11-18 10:03:49 -07:00
os fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
configuration.rs remove the config bridge and have window -> config directly 2021-03-23 21:56:57 -07:00
connection.rs fix(clippy): Remove unnecessary clone/to_string calls 2023-03-16 07:40:12 -07:00
egl.rs fix(clippy): Use faster methods on Iterators 2023-03-19 07:29:23 -07:00
lib.rs add WindowOps::focus, ActivateWindow, window:focus() 2023-01-18 22:58:48 -07:00
screen.rs macos: report max_fps in ScreenInfo 2022-08-19 21:02:51 -07:00
spawn.rs deps: upgrade to mio 0.8 2022-05-04 20:16:41 -07:00