Skip to content

Enable clippy::iter_over_hash_type in remaining viewer crates#12705

Open
emadak47 wants to merge 1 commit into
rerun-io:mainfrom
emadak47:iter-over-hash-type
Open

Enable clippy::iter_over_hash_type in remaining viewer crates#12705
emadak47 wants to merge 1 commit into
rerun-io:mainfrom
emadak47:iter-over-hash-type

Conversation

@emadak47
Copy link
Copy Markdown
Contributor

Related

What

  • Enable #![warn(clippy::iter_over_hash_type)] in 17 viewer crates
    • 12 crates with no violations and 5 crates with violations
  • Suppress 16 sites where, in my understanding, iteration order is irrelevant
  • Fix one site in re_renderer/src/file_server.rs where ? made the iteration order-dependent

Comment on lines +221 to +223
{
re_log::error!(%err, ?path, "couldn't watch imported dependency");
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if one path fails, the set of paths watched before the failure depends on iteration order, so I replaced with error logging which matches the pattern at line 279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant