Skip to content

Commit

Permalink
Update crates/oxc_allocator/src/clone_in.rs
Browse files Browse the repository at this point in the history
Co-authored-by: overlookmotel <theoverlookmotel@gmail.com>
  • Loading branch information
rzvxa and overlookmotel authored Aug 7, 2024
1 parent ab1f645 commit 2b5177f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_allocator/src/clone_in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl<'alloc, T: Copy> CloneIn<'alloc> for Cell<T> {
}

impl<'old_alloc, 'new_alloc> CloneIn<'new_alloc> for &'old_alloc str {
type Cloned = &'new_alloc mut str;
type Cloned = &'new_alloc str;
fn clone_in(&self, alloc: &'new_alloc Allocator) -> Self::Cloned {
alloc.alloc_str(self)
}
Expand Down

0 comments on commit 2b5177f

Please sign in to comment.