Fix nightly clippy
This does enough for the CI to turn green, but there are still lints failing (but only with warning, not errors):
-
unused_peekable
: I'm pretty sure these are false positive, and have reported it upstream -
result_large_err
: we should probably try to fix these ones, largeErr(_)
means the happy path ofOk(_)
still has to copy a big struct. However doing so might require breaking changes (likeBox
ing the Err value) -
mut_mutex_lock
: seems like false positive too. There is a recently fixed issue upstream. The fix was merged a week ago, so it's odd we don't have it (or we do and it's insufficient?), but I'm not sure how clippy releases are made, so maybe it's normal the fix isn't available yet?