From 21c9909f0c45bec44da2b1065fd8c0baab64b9c7 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 13 Apr 2024 02:48:16 -0500 Subject: [PATCH] cl-token: make Token fields public No sense in having them private, they're just plain old data. --- cl-token/src/token.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cl-token/src/token.rs b/cl-token/src/token.rs index ed69b71..395702f 100644 --- a/cl-token/src/token.rs +++ b/cl-token/src/token.rs @@ -5,10 +5,10 @@ use super::{TokenData, TokenKind}; /// and an optional bit of [TokenData] #[derive(Clone, Debug, PartialEq)] pub struct Token { - ty: TokenKind, - data: TokenData, - line: u32, - col: u32, + pub ty: TokenKind, + pub data: TokenData, + pub line: u32, + pub col: u32, } impl Token { /// Creates a new [Token] out of a [TokenKind], [TokenData], line, and column.