Skip to content

Apply suggestions from Clippy#662

Merged
imobachgs merged 2 commits intoagama-project:masterfrom
imobachgs:clippy
Jul 13, 2023
Merged

Apply suggestions from Clippy#662
imobachgs merged 2 commits intoagama-project:masterfrom
imobachgs:clippy

Conversation

@imobachgs
Copy link
Copy Markdown
Contributor

@imobachgs imobachgs commented Jul 13, 2023

Copy link
Copy Markdown
Contributor

@mvidner mvidner left a comment

Choose a reason for hiding this comment

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

Thanks!

For the newbies like me: call it like cargo clippy

mapping
.get(&tzp.to_string())
.expect(format!("Unknown timezone part {tzp}").as_str())
.unwrap_or_else(|| panic!("Unknown timezone part {tzp}"))
Copy link
Copy Markdown
Contributor

@mvidner mvidner Jul 13, 2023

Choose a reason for hiding this comment

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

JFYI: I liked the original more so I ran clippy and found the reason for the change: the format! would always be called.

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.

Yes, same with me. :)

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 72.383% (+0.04%) from 72.339% when pulling e32d3c0 on imobachgs:clippy into 14cfd01 on openSUSE:master.

Copy link
Copy Markdown
Contributor

@mvidner mvidner left a comment

Choose a reason for hiding this comment

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

still LGTM

@imobachgs imobachgs merged commit 2e11beb into agama-project:master Jul 13, 2023
@imobachgs imobachgs deleted the clippy branch July 13, 2023 13:52
@imobachgs imobachgs mentioned this pull request Aug 2, 2023
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.

3 participants