Fix windows build (#109)

This commit is contained in:
Jason Lee 2024-08-05 21:43:55 +08:00 committed by GitHub
parent 7813938605
commit e7a0d13b69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View file

@ -8,7 +8,6 @@ use std::ops::Range;
use super::blink_cursor::BlinkCursor;
use super::history::History;
use crate::button::{Button, ButtonStyle};
use crate::context_menu::ContextMenuExt;
use crate::indicator::Indicator;
use crate::styled_ext::StyleSized;
use crate::theme::ActiveTheme;
@ -991,7 +990,6 @@ impl Element for TextElement {
impl Render for TextInput {
fn render(&mut self, cx: &mut ViewContext<Self>) -> impl IntoElement {
let focus_handle = self.focus_handle.clone();
let focused = self.focus_handle.is_focused(cx);
let prefix = self.prefix.as_ref().map(|build| build(cx));

View file

@ -7,7 +7,7 @@ edition = "2021"
gpui.workspace = true
ui.workspace = true
anyhow.workspace = true
windows = "0.57.0"
windows = { version = "0.57.0", features = ["Wdk", "Wdk_System", "Wdk_System_SystemServices"] }
schemars = "0.7.0"
parking_lot = "0.12.1"
serde = "1.0.203"