mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 13:21:38 +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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |