It looked like the simplest way to conditionally introduce the loop was to change the final statement to always be (the equivalent of) return v; instead of just v, so I also added a suppression for clippy::needless_return, since all non-idempotent operations now end with a needless return.
It looked like the simplest way to conditionally introduce the loop was to change the final statement to always be (the equivalent of)
return v;
instead of justv
, so I also added a suppression forclippy::needless_return
, since all non-idempotent operations now end with a needless return.Fixes #19.