1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-11-20 23:41:55 +01:00

chore: update deps

This commit is contained in:
Jake Stanger 2025-07-14 19:55:25 +01:00
commit 3a3888a2d6
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
3 changed files with 86 additions and 95 deletions

View file

@ -52,16 +52,11 @@ where
}
#[cfg(feature = "schema")]
pub fn schema_layer(generator: &mut schemars::r#gen::SchemaGenerator) -> schemars::schema::Schema {
use schemars::JsonSchema;
let mut schema: schemars::schema::SchemaObject = <String>::json_schema(generator).into();
schema.enum_values = Some(vec![
"background".into(),
"bottom".into(),
"top".into(),
"overlay".into(),
]);
schema.into()
pub fn schema_layer(_generator: &mut schemars::SchemaGenerator) -> schemars::Schema {
schemars::json_schema!({
"type": "string",
"enum": ["background", "bottom", "top", "overlay"],
})
}
impl BarPosition {