mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 21:32:13 +03:00
d541e2e13d
- 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. |
||
---|---|---|
.. | ||
derive | ||
src | ||
tests | ||
Cargo.toml | ||
LICENSE.md |