Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix more tests

Mikaylace0ff819f915
diff --git a/crates/gpui/README.md b/crates/gpui/README.md
index 1ced6979863..9b087a9752a 100644
--- a/crates/gpui/README.md
+++ b/crates/gpui/README.md
@@ -37,5 +37,4 @@ In addition to the systems above, GPUI provides a range of smaller services that
- The `[gpui::test]` macro provides a convenient way to write tests for your GPUI applications. Tests also have their own kind of context, a `TestAppContext` which provides ways of simulating common platform input. See `app::test_context` and `test` modules for more details.
-Currently, the best way to learn about these APIs is to read the Zed source code or to ask us about it at a fireside hack or in the [Zed Discord](https://discord.gg/U4qhCEhMXP). We're working on improving the documentation, creating more examples, and will be publishing more guides to GPUI on our [blog](https://zed.dev/blog).
-
+Currently, the best way to learn about these APIs is to read the Zed source code, ask us about it at a fireside hack, or drop a question in the [Zed Discord](https://discord.gg/U4qhCEhMXP). We're working on improving the documentation, creating more examples, and will be publishing more guides to GPUI on our [blog](https://zed.dev/blog).
diff --git a/crates/gpui/src/gpui.rs b/crates/gpui/src/gpui.rs
index 4a1cf411932..638e94de396 100644
--- a/crates/gpui/src/gpui.rs
+++ b/crates/gpui/src/gpui.rs
@@ -56,8 +56,9 @@
//! own kind of context, a [`TestAppContext`] which provides ways of simulating common platform input. See [`app::test_context`]
//! and [`test`] modules for more details.
//!
-//! Currently, the best way to learn about these APIs is to read the Zed source code or to ask us about it at a fireside hack or in the [Zed Discord](https://discord.gg/U4qhCEhMXP).
-//! We're working on improving the documentation, creating more examples, and will be publishing more guides to GPUI on our [blog](https://zed.dev/blog).
+//! Currently, the best way to learn about these APIs is to read the Zed source code, ask us about it at a fireside hack, or drop
+//! a question in the [Zed Discord](https://discord.gg/U4qhCEhMXP). We're working on improving the documentation, creating more examples,
+//! and will be publishing more guides to GPUI on our [blog](https://zed.dev/blog).
#![deny(missing_docs)]
#![allow(clippy::type_complexity)]
diff --git a/crates/storybook/src/stories/z_index.rs b/crates/storybook/src/stories/z_index.rs
index 63ee1af7591..e32e39a2d1d 100644
--- a/crates/storybook/src/stories/z_index.rs
+++ b/crates/storybook/src/stories/z_index.rs
@@ -1,4 +1,4 @@
-use gpui::{px, rgb, Div, Hsla, IntoElement, Render, RenderOnce};
+use gpui::{px, rgb, Div, IntoElement, Render, RenderOnce};
use story::Story;
use ui::prelude::*;
@@ -51,22 +51,22 @@ trait Styles: Styled + Sized {
self.absolute()
.w(px(150.))
.h(px(50.))
- .text_color(rgb::<Hsla>(0x000000))
+ .text_color(rgb(0x000000))
}
fn blue(self) -> Self {
- self.bg(rgb::<Hsla>(0xe5e8fc))
+ self.bg(rgb(0xe5e8fc))
.border_5()
- .border_color(rgb::<Hsla>(0x112382))
+ .border_color(rgb(0x112382))
.line_height(px(55.))
// HACK: Simulate `text-align: center`.
.pl(px(24.))
}
fn red(self) -> Self {
- self.bg(rgb::<Hsla>(0xfce5e7))
+ self.bg(rgb(0xfce5e7))
.border_5()
- .border_color(rgb::<Hsla>(0xe3a1a7))
+ .border_color(rgb(0xe3a1a7))
// HACK: Simulate `text-align: center`.
.pl(px(8.))
}
@@ -92,10 +92,10 @@ impl RenderOnce for ZIndexExample {
.left(px(15.))
.w(px(180.))
.h(px(230.))
- .bg(rgb::<Hsla>(0xfcfbe5))
- .text_color(rgb::<Hsla>(0x000000))
+ .bg(rgb(0xfcfbe5))
+ .text_color(rgb(0x000000))
.border_5()
- .border_color(rgb::<Hsla>(0xe3e0a1))
+ .border_color(rgb(0xe3e0a1))
.line_height(px(215.))
// HACK: Simulate `text-align: center`.
.pl(px(24.))