(id: &'static str, raw: &'static str)
| 760 | |
| 761 | static BUILTIN_OPENCODE_THEMES: Lazy<HashMap<&'static str, OpencodeThemeJson>> = Lazy::new(|| { |
| 762 | fn parse(id: &'static str, raw: &'static str) -> (&'static str, OpencodeThemeJson) { |
| 763 | let json = serde_json::from_str::<OpencodeThemeJson>(raw) |
| 764 | .unwrap_or_else(|e| panic!("Failed to parse built-in theme {}: {}", id, e)); |
| 765 | (id, json) |
| 766 | } |
| 767 | |
| 768 | HashMap::from([ |
| 769 | parse( |
no outgoing calls
no test coverage detected