Closed awidegreen closed 6 years ago
I used cargo +nightly clippy to extract the warnings.
cargo +nightly clippy
Most of the changes could be made by:
unwrap_or
unwrap_or_else
_.filter(_).next(_)
_.fínd(_)
const var: &'static str
const var: &str
Thanks!
I used
cargo +nightly clippy
to extract the warnings.Most of the changes could be made by:
unwrap_or
tounwrap_or_else
, see clippy: warning 'or_fun_call'_.filter(_).next(_)
to_.fínd(_)
: see clippy warning 'filter_next'const var: &'static str
toconst var: &str
, see clippy warning 'const_static_lifetime'