Skip to content

ref SquawkRule to store id in struct#100

Merged
kodiakhq[bot] merged 5 commits intomasterfrom
chris/store-id-on-rule
Feb 17, 2021
Merged

ref SquawkRule to store id in struct#100
kodiakhq[bot] merged 5 commits intomasterfrom
chris/store-id-on-rule

Conversation

@chdsbd
Copy link
Collaborator

@chdsbd chdsbd commented Feb 17, 2021

No description provided.

@chdsbd chdsbd requested a review from sbdchd February 17, 2021 04:40
Comment on lines +37 to +39
match RULES.iter().find(|rule| rule.id == s) {
Some(rule) => Ok(rule.name.clone()),
None => Err(()),
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
match RULES.iter().find(|rule| rule.id == s) {
Some(rule) => Ok(rule.name.clone()),
None => Err(()),
RULES.iter().find(|rule| rule.id == s).map(|rule| rule.name.clone()).ok_or(())

@sbdchd sbdchd added the automerge automerge with kodiak label Feb 17, 2021
@kodiakhq kodiakhq bot merged commit dbd2c3b into master Feb 17, 2021
@kodiakhq kodiakhq bot deleted the chris/store-id-on-rule branch February 17, 2021 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge automerge with kodiak

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants