From b33e0ed3ea58a65c5e06196d4170f15c27c450ed Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 7 Feb 2023 09:19:09 -0600 Subject: [PATCH] fix release build warnings --- packages/core/src/create.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/create.rs b/packages/core/src/create.rs index 3014a7bfe..12c11d1e9 100644 --- a/packages/core/src/create.rs +++ b/packages/core/src/create.rs @@ -11,6 +11,7 @@ use std::iter::Peekable; use std::rc::Rc; use TemplateNode::*; +#[cfg(debug_assertions)] fn sort_bfs(paths: &[&'static [u8]]) -> Vec<(usize, &'static [u8])> { let mut with_indecies = paths.iter().copied().enumerate().collect::>(); with_indecies.sort_unstable_by(|(_, a), (_, b)| { @@ -386,6 +387,8 @@ impl<'b> VirtualDom { } /// Insert a new template into the VirtualDom's template registry + // used in conditional compilation + #[allow(unused_mut)] pub(crate) fn register_template(&mut self, mut template: Template<'static>) { let (path, byte_index) = template.name.rsplit_once(':').unwrap(); let byte_index = byte_index.parse::().unwrap();