Converted Interner to work with Rc-s
- Interner no longer contains unsafe code - Tokens now hold a reference to the value they represent directly This will enable many future improvements
This commit is contained in:
@@ -17,7 +17,7 @@ pub fn vec_match<'a>(
|
||||
if *nonzero && seq.is_empty() {
|
||||
return None;
|
||||
}
|
||||
return Some(State::from([(*key, StateEntry::Vec(seq))]));
|
||||
return Some(State::from([(key.clone(), StateEntry::Vec(seq))]));
|
||||
},
|
||||
VecMatcher::Scan { left, sep, right, direction } => {
|
||||
if seq.len() < sep.len() {
|
||||
|
||||
Reference in New Issue
Block a user