From 7b489f5e2e91e756b84499f3b31b5f0c4f5ef94a Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 9 Nov 2023 15:16:59 -0500 Subject: [PATCH] Allow user-theme related methods to be unused --- crates/theme2/src/registry.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/theme2/src/registry.rs b/crates/theme2/src/registry.rs index 8f97354ec5de7943a1ecf421f7e7cc0b0dae5e61..0c61f6f22468901e6c7c78e8664d075c5c82779c 100644 --- a/crates/theme2/src/registry.rs +++ b/crates/theme2/src/registry.rs @@ -27,12 +27,14 @@ impl ThemeRegistry { } } + #[allow(unused)] fn insert_user_theme_familes(&mut self, families: impl IntoIterator) { for family in families.into_iter() { self.insert_user_themes(family.themes); } } + #[allow(unused)] fn insert_user_themes(&mut self, themes: impl IntoIterator) { self.insert_themes(themes.into_iter().map(|user_theme| { let mut theme_colors = match user_theme.appearance {