Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix explicit_iter_loop pedantic lint 🎨 #145

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

nicokosi
Copy link
Owner

Lint warning, before this change:

$ cargo clippy

140 |     for (author, events) in events_per_author.iter() {
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `events_per_author`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
    = note: `-W clippy::explicit-iter-loop` implied by `-W clippy::pedantic`

warning: `pullpito` (lib) generated 1 warning (run `cargo clippy --fix --lib -p pullpito` to apply 1 suggestion)

Lint warning, before this change:

	$ cargo clippy

	140 |     for (author, events) in events_per_author.iter() {
	    |                             ^^^^^^^^^^^^^^^^^^^^^^^^ help: to write this more concisely, try: `events_per_author`
	    |
	    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_iter_loop
	    = note: `-W clippy::explicit-iter-loop` implied by `-W clippy::pedantic`

	warning: `pullpito` (lib) generated 1 warning (run `cargo clippy --fix --lib -p pullpito` to apply 1 suggestion)
@nicokosi nicokosi merged commit e315419 into main Aug 26, 2023
1 check passed
@nicokosi nicokosi deleted the lint/fix_explicit_iter_loop branch August 26, 2023 17:16
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