Either silenced or applied suggested improvements.
Shorthand initialization avoids tautologic code
Suppressed "too many arguments" warning
Replaced .map(...).flatten() with .and_then() to make code more readable and reduce number of stacked methods
Suppressed all "this operation has no effect" (clippy::identity_op) warning because the warnming-producing code would be more readable and consistent with otehr lines if the zero is left there.
Either silenced or applied suggested improvements.
.map(...).flatten()
with.and_then()
to make code more readable and reduce number of stacked methodsclippy::identity_op
) warning because the warnming-producing code would be more readable and consistent with otehr lines if the zero is left there.