1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

fix: remove unconditional schemars import

(cherry picked from commit 1c33b3b35abbc46476e36e449845f37c6c75ac71)
This commit is contained in:
Reinout Meliesie 2024-06-07 12:05:36 +02:00
parent 8b91febed7
commit de29b8dee1
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -3,7 +3,6 @@ use futures_lite::StreamExt;
use futures_signals::signal::SignalExt;
use gtk::prelude::ContainerExt;
use gtk::{Box as GtkBox, Image, Orientation};
use schemars::JsonSchema;
use serde::Deserialize;
use tokio::sync::mpsc::Receiver;
@ -15,7 +14,7 @@ use crate::modules::{Module, ModuleInfo, ModuleParts, ModuleUpdateEvent, WidgetC
use crate::{glib_recv, module_impl, send_async, spawn};
#[derive(Debug, Deserialize, Clone)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
pub struct NetworkManagerModule {
#[serde(default = "default_icon_size")]
icon_size: i32,