浏览代码

Merge pull request #1576 from ealmloff/fix-lints-release-web

Fix use shared state lint in release mode
Jonathan Kelley 1 年之前
父节点
当前提交
4444ba0b97
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/hooks/src/use_shared_state.rs

+ 1 - 0
packages/hooks/src/use_shared_state.rs

@@ -26,6 +26,7 @@ macro_rules! debug_location {
 }
 
 pub mod error {
+    #[cfg(debug_assertions)]
     fn locations_display(locations: &[&'static std::panic::Location<'static>]) -> String {
         locations
             .iter()