diff options
author | Thomas Hurst <tom@hur.st> | 2018-09-04 22:29:04 +0100 |
---|---|---|
committer | Kartikaya Gupta (kats) <staktrace@users.noreply.github.com> | 2018-09-05 04:05:28 -0400 |
commit | 9ee581f8d9d0dd174c54d9c63093c8ed8e68f999 (patch) | |
tree | 45be609726f4b97efb9182ca55bdb12c3664c7b3 /target | |
parent | d31ccf10c38bc1e2c97c71102ab6ae1a2161b54b (diff) |
Use unwrap_or_else() and unwrap_or_default()
This is particularly good for fallbacks which allocate, like
String::new() and "bla".to_string(). len() is mostly to shut up clippy.
clippy:or_fun_call
Diffstat (limited to 'target')
0 files changed, 0 insertions, 0 deletions