Skip to content

Commit

Permalink
Expose public structs
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rianb committed Dec 11, 2023
1 parent 61723e8 commit 7fa624e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ mod header;
mod utils;

// Public API of the crate
pub use crate::header::{CharacterSet, RtfHeader};
pub use crate::header::{CharacterSet, RtfHeader, FontFamily};
pub use crate::lexer::Lexer;
pub use crate::parser::{Painter, Parser, StyleBlock};
pub use crate::document::RtfDocument;
pub use crate::tokens::Token;
pub use crate::tokens::{Token, ControlSymbol, ControlWord, Property};
2 changes: 1 addition & 1 deletion src/tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub enum Token<'a> {

// A control symbol is a pair (control_word, property)
// In the RTF specifiaction, it refer to 'control word entity'
type ControlSymbol<'a> = (ControlWord<'a>, Property);
pub type ControlSymbol<'a> = (ControlWord<'a>, Property);

// Parameters for a control word
#[allow(dead_code)]
Expand Down

0 comments on commit 7fa624e

Please sign in to comment.