File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ fn main() {
3333 let theme_set = two_face :: theme :: extra ();
3434
3535 let syn_ref = syn_set . find_syntax_by_extension (" toml" ). unwrap ();
36- let theme = theme_set . get ( two_face :: theme :: EmbeddedThemeName :: Nord ) ;
36+ let theme = & theme_set [ two_face :: theme :: EmbeddedThemeName :: Nord ] ;
3737 let htmlified = syntect :: html :: highlighted_html_for_string (
3838 TOML_TEXT ,
3939 & syn_set ,
Original file line number Diff line number Diff line change 2626//! let theme_set = two_face::theme::extra();
2727//!
2828//! let syn_ref = syn_set.find_syntax_by_extension("toml").unwrap();
29- //! let theme = theme_set.get( two_face::theme::EmbeddedThemeName::Nord) ;
29+ //! let theme = & theme_set[ two_face::theme::EmbeddedThemeName::Nord] ;
3030//! let htmlified = syntect::html::highlighted_html_for_string(
3131//! TOML_TEXT,
3232//! &syn_set,
You can’t perform that action at this time.
0 commit comments