File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use syntect::highlighting::{Theme, ThemeSet};
13
13
/// Same structure as a [`syntect::highlighting::ThemeSet`] but with themes
14
14
/// stored in raw serialized form, and deserialized on demand.
15
15
#[ derive( Debug , Default , Serialize , Deserialize ) ]
16
- pub struct LazyThemeSet {
16
+ pub ( crate ) struct LazyThemeSet {
17
17
/// This is a [`BTreeMap`] because that's what [`syntect::highlighting::ThemeSet`] uses
18
18
themes : BTreeMap < String , LazyTheme > ,
19
19
}
@@ -30,7 +30,7 @@ struct LazyTheme {
30
30
31
31
impl LazyThemeSet {
32
32
/// Lazily load the given theme
33
- pub fn get ( & self , name : & str ) -> Option < & Theme > {
33
+ pub ( crate ) fn get ( & self , name : & str ) -> Option < & Theme > {
34
34
self . themes . get ( name) . and_then ( |lazy_theme| {
35
35
lazy_theme
36
36
. deserialized
@@ -40,7 +40,7 @@ impl LazyThemeSet {
40
40
}
41
41
42
42
/// 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 > {
44
44
self . themes . keys ( ) . map ( |name| name. as_ref ( ) )
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments