Shrink ra_parser::Event from 32 bytes to 16 bytes
This boxes the Error variant with the assumption that it is rarely constructed
This commit is contained in:
@@ -25,7 +25,7 @@ pub(crate) use token_set::TokenSet;
|
||||
pub use syntax_kind::SyntaxKind;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub struct ParseError(pub String);
|
||||
pub struct ParseError(pub Box<String>);
|
||||
|
||||
/// `TokenSource` abstracts the source of the tokens parser operates on.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user