Explorar o código

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

Fix use shared state lint in release mode
Jonathan Kelley hai 1 ano
pai
achega
4444ba0b97
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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()