Skip to content

Conversation

shaobo-he-aws
Copy link
Contributor

@shaobo-he-aws shaobo-he-aws commented Sep 9, 2024

Description of changes

Applied clippy 1.81

Issue #, if available

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A change "invisible" to users (e.g., documentation, changes to "internal" crates like cedar-policy-core, cedar-validator, etc.)

I confirm that this PR (choose one, and delete the other options):

  • Does not update the CHANGELOG because my change does not significantly impact released code.

I confirm that cedar-spec (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

Signed-off-by: Shaobo He <[email protected]>
entity_children
.entry(internal_name_to_entity_type(parent.clone())?)
.or_insert_with(HashSet::new)
.or_default()
Copy link
Contributor

@john-h-kastner-aws john-h-kastner-aws Sep 9, 2024

Choose a reason for hiding this comment

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

Can you check if this is actually the same? I can imagine that or_default could reasonably not insert the default value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@khieta khieta left a comment

Choose a reason for hiding this comment

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

Lgtm.

@shaobo-he-aws shaobo-he-aws merged commit 6c139da into main Sep 10, 2024
19 checks passed
@shaobo-he-aws shaobo-he-aws deleted the chore/shaobo/clippy-1.81 branch September 10, 2024 17:16
aaronjeline pushed a commit that referenced this pull request Sep 10, 2024
@aaronjeline aaronjeline mentioned this pull request Sep 10, 2024
3 tasks
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