cargo fmt

This commit is contained in:
Piotr Osiewicz 2023-06-22 17:59:56 +02:00
parent af252888c4
commit b430be5bc6
2 changed files with 3 additions and 5 deletions

View file

@ -12,9 +12,7 @@ use crate::{
scene::{self, Border, CursorRegion, Quad}, scene::{self, Border, CursorRegion, Quad},
AnyElement, Element, LayoutContext, SceneBuilder, SizeConstraint, View, ViewContext, AnyElement, Element, LayoutContext, SceneBuilder, SizeConstraint, View, ViewContext,
}; };
use schemars::{ use schemars::JsonSchema;
JsonSchema,
};
use serde::Deserialize; use serde::Deserialize;
use serde_json::json; use serde_json::json;
@ -335,7 +333,6 @@ impl ToJson for ContainerStyle {
} }
} }
#[derive(Clone, Copy, Debug, Default, JsonSchema)] #[derive(Clone, Copy, Debug, Default, JsonSchema)]
pub struct Margin { pub struct Margin {
pub top: f32, pub top: f32,

View file

@ -4,7 +4,8 @@ use collections::BTreeMap;
use gpui::{keymap_matcher::Binding, AppContext}; use gpui::{keymap_matcher::Binding, AppContext};
use schemars::{ use schemars::{
gen::{SchemaGenerator, SchemaSettings}, gen::{SchemaGenerator, SchemaSettings},
schema::{InstanceType, Schema, SchemaObject, SingleOrVec, SubschemaValidation}, JsonSchema, schema::{InstanceType, Schema, SchemaObject, SingleOrVec, SubschemaValidation},
JsonSchema,
}; };
use serde::Deserialize; use serde::Deserialize;
use serde_json::Value; use serde_json::Value;