Skip to main content

max / alloy

Iterate the folder list by reference, as clippy asks `into_iter()` on a `&[Folder]` is `iter()` with a longer name; the result was already being cloned, so nothing was being consumed either way.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session
https://claude.ai/code/session_01WFBzMprSmNCfvdj2cGZyka
Author: Max Johnson <me@maxj.phd> · 2026-09-07 23:07 UTC
Signed with PGP, not checked
Commit: c37786b420803da8eb64f99fffc102d1491104ad
Parent: 54d3461
1 file changed, +1 insertion, -1 deletion
@@ -396,7 +396,7 @@
396 396 };
397 397 let Some(folder) = self
398 398 .folder_list()
399 - .into_iter()
399 + .iter()
400 400 .find(|f| &f.id == folder_id)
401 401 .cloned()
402 402 else {