fix: exclude debug only function in release mode (#387)

This commit is contained in:
Simon Hyll
2023-05-22 20:02:06 +02:00
committed by GitHub
parent f3f92a6ff6
commit a0133cb5b3
+1
View File
@@ -79,6 +79,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
desktop_commands::set_icon,
desktop_commands::toggle_maximize,
desktop_commands::internal_toggle_maximize,
#[cfg(any(debug_assertions, feature = "devtools"))]
desktop_commands::internal_toggle_devtools,
]);
#[allow(clippy::needless_return)]