Skip to content

Commit

Permalink
Implement clone for ThemeSet
Browse files Browse the repository at this point in the history
  • Loading branch information
h7kanna committed Dec 6, 2024
1 parent 5bb5ef8 commit 64ca988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/highlighting/theme_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use serde_derive::{Deserialize, Serialize};
use std::collections::BTreeMap;
use std::path::{Path, PathBuf};

#[derive(Debug, Default, Serialize, Deserialize)]
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
pub struct ThemeSet {
// This is a `BTreeMap` because they're faster than hashmaps on small sets
pub themes: BTreeMap<String, Theme>,
Expand Down
2 changes: 2 additions & 0 deletions tests/public-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ pub fn syntect::highlighting::ThemeSet::load_from_reader<R: std::io::BufRead + s
pub fn syntect::highlighting::ThemeSet::new() -> syntect::highlighting::ThemeSet
impl syntect::highlighting::ThemeSet
pub fn syntect::highlighting::ThemeSet::load_defaults() -> syntect::highlighting::ThemeSet
impl core::clone::Clone for syntect::highlighting::ThemeSet
pub fn syntect::highlighting::ThemeSet::clone(&self) -> syntect::highlighting::ThemeSet
impl core::default::Default for syntect::highlighting::ThemeSet
pub fn syntect::highlighting::ThemeSet::default() -> syntect::highlighting::ThemeSet
impl core::fmt::Debug for syntect::highlighting::ThemeSet
Expand Down

0 comments on commit 64ca988

Please sign in to comment.