Skip to content

Commit ff6dc09

Browse files
authored
Merge pull request #12798 from gitbutlerapp/into-editor
to_editor -> into_editor
2 parents d4dc9cb + 71c7b14 commit ff6dc09

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/but-rebase/src/graph_rebase/creation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ impl GraphExt for Graph {
237237

238238
impl SuccessfulRebase {
239239
/// Converts a SuccessfulRebase back into another editor for multi-step operations
240-
pub fn to_editor(self) -> Editor {
240+
pub fn into_editor(self) -> Editor {
241241
Editor {
242242
graph: self.graph,
243243
initial_references: self.initial_references,

crates/but-workspace/src/commit/move_changes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub(crate) mod function {
9292
editor.replace(source_selector, Step::new_pick(new_source_commit_id))?;
9393

9494
// Rebase and get potentially rebased destination commit
95-
let mut editor = editor.rebase()?.to_editor();
95+
let mut editor = editor.rebase()?.into_editor();
9696
let (_, rebased_destination_commit) =
9797
editor.find_selectable_commit(destination_selector)?;
9898
let destination_tree_id = {

0 commit comments

Comments
 (0)