Skip to content

Commit

Permalink
Merge 5a9ffe1 into 003f346
Browse files Browse the repository at this point in the history
  • Loading branch information
gvozdvmozgu authored Jan 17, 2025
2 parents 003f346 + 5a9ffe1 commit 5cb7dc8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/lib-core/src/parser/segments/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,7 @@ impl ErasedSegment {

#[track_caller]
pub(crate) fn make_mut(&mut self) -> &mut NodeOrToken {
let mut this = self.deep_clone();
std::mem::swap(self, &mut this);
Rc::get_mut(&mut self.value).unwrap()
Rc::make_mut(&mut self.value)
}

pub fn reference(&self) -> ObjectReferenceSegment {
Expand Down

0 comments on commit 5cb7dc8

Please sign in to comment.