You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`cargo clippy --all-targets -- -D warnings` now passes. Mechanical, with no
behaviour change:
- four `match check_version_constraints(..) { Ok(v) => info!(..), Err(e) =>
return Err(e) }` blocks collapsed to `?` plus the log line
- redundant `&` in format!/bail!/panic!/assert! arguments
- `for (_k, v) in map.iter()` -> `map.values()`
- `sort_by(|a, b| a.step.cmp(&b.step))` -> `sort_by_key(|c| c.step)`; both
are stable sorts on the same key
- a needless borrow at the af_anndata call site
The one exception is `mutable_key_type` in jrsonnet_main, which fires on the
map returned by jrsonnet's `tla_opts()`. The key type is theirs, not ours, and
nothing here mutates a key, so that one is allowed with a note rather than
worked around.
Note for anyone doing this in bulk: `&x` is only redundant inside format-like
macros. Removing it blindly turns `chem_hm.get(&name)` into a type error and
`.args(&args)` into a move, both of which surfaced here and are restored.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VhyNvEWUgY8ALVacdJHxVJ
0 commit comments