mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 15:04:36 +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. |
||
---|---|---|
.. | ||
array.rs | ||
drop.rs | ||
error.rs | ||
fromdynamic.rs | ||
lib.rs | ||
map.rs | ||
object.rs | ||
todynamic.rs | ||
value.rs |