Reduce Result<Tok, LexicalError> size by using Box<str> instead of String (#9885)

This commit is contained in:
Micha Reiser 2024-02-08 21:36:22 +01:00 committed by GitHub
parent 9027169125
commit fe7d965334
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 454 additions and 425 deletions

View file

@ -203,7 +203,7 @@ fn soft_to_name(tok: &Tok) -> Tok {
_ => unreachable!("other tokens never reach here"),
};
Tok::Name {
name: name.to_owned(),
name: name.to_string().into_boxed_str(),
}
}