Skip to content

Commit c52da19

Browse files
committed
style: Reduce visibility
1 parent 814f319 commit c52da19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/assets/lazy_theme_set.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use syntect::highlighting::{Theme, ThemeSet};
1313
/// Same structure as a [`syntect::highlighting::ThemeSet`] but with themes
1414
/// stored in raw serialized form, and deserialized on demand.
1515
#[derive(Debug, Default, Serialize, Deserialize)]
16-
pub struct LazyThemeSet {
16+
pub(crate) struct LazyThemeSet {
1717
/// This is a [`BTreeMap`] because that's what [`syntect::highlighting::ThemeSet`] uses
1818
themes: BTreeMap<String, LazyTheme>,
1919
}
@@ -30,7 +30,7 @@ struct LazyTheme {
3030

3131
impl LazyThemeSet {
3232
/// Lazily load the given theme
33-
pub fn get(&self, name: &str) -> Option<&Theme> {
33+
pub(crate) fn get(&self, name: &str) -> Option<&Theme> {
3434
self.themes.get(name).and_then(|lazy_theme| {
3535
lazy_theme
3636
.deserialized
@@ -40,7 +40,7 @@ impl LazyThemeSet {
4040
}
4141

4242
/// Returns the name of all themes.
43-
pub fn themes(&self) -> impl Iterator<Item = &str> {
43+
pub(crate) fn themes(&self) -> impl Iterator<Item = &str> {
4444
self.themes.keys().map(|name| name.as_ref())
4545
}
4646
}

0 commit comments

Comments
 (0)