Skip to content

to_editor -> into_editor#12798

Merged
estib-vega merged 1 commit intomasterfrom
into-editor
Mar 12, 2026
Merged

to_editor -> into_editor#12798
estib-vega merged 1 commit intomasterfrom
into-editor

Conversation

@estib-vega
Copy link
Contributor

small rename for an extra level of clarity

small rename for an extra level of clarity
Copilot AI review requested due to automatic review settings March 12, 2026 08:55
@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
gitbutler-web Ignored Ignored Preview Mar 12, 2026 8:55am

Request Review

@github-actions github-actions bot added the rust Pull requests that update Rust code label Mar 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR renames SuccessfulRebase::to_editor to SuccessfulRebase::into_editor to follow Rust naming conventions, since the method consumes self (takes ownership). The to_ prefix in Rust conventionally implies borrowing, while into_ implies ownership transfer.

Changes:

  • Renamed SuccessfulRebase::to_editor(self) to into_editor(self) in its definition and single call site.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/but-rebase/src/graph_rebase/creation.rs Renames the method definition from to_editor to into_editor
crates/but-workspace/src/commit/move_changes.rs Updates the sole call site to use the new name into_editor

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Collaborator

@Byron Byron left a comment

Choose a reason for hiding this comment

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

That's the way! 👋

@estib-vega estib-vega merged commit ff6dc09 into master Mar 12, 2026
40 checks passed
@estib-vega estib-vega deleted the into-editor branch March 12, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants