summaryrefslogtreecommitdiffstats
path: root/src/assets.rs
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2020-04-22 22:05:54 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2020-04-22 23:55:28 +0200
commit53a973e9dd9ecf102d7bcc345846f2632585159a (patch)
treebac424456c5a4c3752e10a3b9b16e7ac9a89d6dc /src/assets.rs
parentcba9df746e9a719c59563962ff815210d8304833 (diff)
Add syntaxes and themes method
Diffstat (limited to 'src/assets.rs')
-rw-r--r--src/assets.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/assets.rs b/src/assets.rs
index cc6f0d98..11756672 100644
--- a/src/assets.rs
+++ b/src/assets.rs
@@ -164,8 +164,8 @@ impl HighlightingAssets {
self.syntax_set.syntaxes()
}
- pub fn themes(&self) -> impl Iterator<Item = &String> {
- self.theme_set.themes.keys()
+ pub fn themes(&self) -> impl Iterator<Item = &str> {
+ self.theme_set.themes.keys().map(|s| s.as_ref())
}
pub(crate) fn get_theme(&self, theme: &str) -> &Theme {