Skip to content

Commit 551d1cb

Browse files
ArvinSKushwahakivikakk
authored andcommitted
Also, needed to make those functions public
1 parent 5cfee29 commit 551d1cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plugins/syntect.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,22 @@ pub struct SyntectAdapterBuilder<'a> {
119119
}
120120

121121
impl<'a> SyntectAdapterBuilder<'a> {
122-
fn new() -> Self {
122+
pub fn new() -> Self {
123123
Default::default()
124124
}
125-
fn theme(mut self, s: &'a str) -> Self {
125+
pub fn theme(mut self, s: &'a str) -> Self {
126126
self.theme.replace(s);
127127
self
128128
}
129-
fn syntax_set(mut self, s: SyntaxSet) -> Self {
129+
pub fn syntax_set(mut self, s: SyntaxSet) -> Self {
130130
self.syntax_set.replace(s);
131131
self
132132
}
133-
fn theme_set(mut self, s: ThemeSet) -> Self {
133+
pub fn theme_set(mut self, s: ThemeSet) -> Self {
134134
self.theme_set.replace(s);
135135
self
136136
}
137-
fn build(self) -> SyntectAdapter<'a> {
137+
pub fn build(self) -> SyntectAdapter<'a> {
138138
SyntectAdapter {
139139
theme: self.theme.unwrap_or("InspiredGitHub"),
140140
syntax_set: self

0 commit comments

Comments
 (0)