fix use shared state lint in release mode
This commit is contained in:
1 parent
647815fa6f
commit
6e85ecea12
1 file changed
+1
@@ -26,6 +26,7 @@ macro_rules! debug_location {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub mod error {
|
pub mod error {
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
fn locations_display(locations: &[&'static std::panic::Location<'static>]) -> String {
|
fn locations_display(locations: &[&'static std::panic::Location<'static>]) -> String {
|
||||||
locations
|
locations
|
||||||
.iter()
|
.iter()
|
||||||
|
|||||||
Reference in new issue
Block a user