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

Simplify memory swap #847

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Simplify memory swap #847

merged 1 commit into from
Nov 20, 2024

Conversation

paulgb
Copy link
Member

@paulgb paulgb commented Nov 20, 2024

@rolyatmax caught this, it may have been useful at some point but it no longer is since we aren't doing anything with the result.


Important

Replace std::mem::swap with direct assignment in set_sender() in key_manager.rs.

  • Refactor:
    • Replace std::mem::swap with direct assignment in set_sender() in key_manager.rs for handle update.

This description was created by Ellipsis for 7ff7225. It will automatically update as commits are pushed.

Copy link

vercel bot commented Nov 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
plane ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 20, 2024 10:22pm

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to 7ff7225 in 8 seconds

More details
  • Looked at 21 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. plane/src/drone/key_manager.rs:134
  • Draft comment:
    The change from std::mem::swap to direct assignment is appropriate and simplifies the code. This is more idiomatic since the result of GuardHandle::new is not used elsewhere.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The change from using std::mem::swap to direct assignment is appropriate since the result of GuardHandle::new is not used elsewhere. This simplifies the code and is more idiomatic.

Workflow ID: wflow_1T3g8Q4qYLDfjjhu


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@paulgb paulgb merged commit f85c123 into main Nov 20, 2024
5 of 6 checks passed
@paulgb paulgb deleted the paulgb/simplify-mem-swap branch November 20, 2024 22:48
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.

2 participants