Skip to content

Commit

Permalink
fix(lexer): Source is not Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jan 6, 2025
1 parent 9b48c0e commit c07b69c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crates/oxc_parser/src/lexer/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ use super::search::SEARCH_BATCH_SIZE;
/// are satisfied, to restore this invariant before passing control back to other code.
/// It will often be preferable to instead use `Source::peek_byte`, followed by `Source::next_char`,
/// which are safe methods, and compiler will often reduce to equally efficient code.
#[derive(Clone)]
pub(super) struct Source<'a> {
/// Pointer to start of source string. Never altered after initialization.
start: *const u8,
Expand Down

0 comments on commit c07b69c

Please sign in to comment.