From b430be5bc6998fb88b58ff39d482f0ba6c7efda5 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Thu, 22 Jun 2023 17:59:56 +0200 Subject: [PATCH] cargo fmt --- crates/gpui/src/elements/container.rs | 5 +---- crates/settings/src/keymap_file.rs | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/gpui/src/elements/container.rs b/crates/gpui/src/elements/container.rs index eaeee6f0d9..3b95feb9ef 100644 --- a/crates/gpui/src/elements/container.rs +++ b/crates/gpui/src/elements/container.rs @@ -12,9 +12,7 @@ use crate::{ scene::{self, Border, CursorRegion, Quad}, AnyElement, Element, LayoutContext, SceneBuilder, SizeConstraint, View, ViewContext, }; -use schemars::{ - JsonSchema, -}; +use schemars::JsonSchema; use serde::Deserialize; use serde_json::json; @@ -335,7 +333,6 @@ impl ToJson for ContainerStyle { } } - #[derive(Clone, Copy, Debug, Default, JsonSchema)] pub struct Margin { pub top: f32, diff --git a/crates/settings/src/keymap_file.rs b/crates/settings/src/keymap_file.rs index 42fbeebe57..d2e656ebe3 100644 --- a/crates/settings/src/keymap_file.rs +++ b/crates/settings/src/keymap_file.rs @@ -4,7 +4,8 @@ use collections::BTreeMap; use gpui::{keymap_matcher::Binding, AppContext}; use schemars::{ gen::{SchemaGenerator, SchemaSettings}, - schema::{InstanceType, Schema, SchemaObject, SingleOrVec, SubschemaValidation}, JsonSchema, + schema::{InstanceType, Schema, SchemaObject, SingleOrVec, SubschemaValidation}, + JsonSchema, }; use serde::Deserialize; use serde_json::Value;