chore: fmt
This commit is contained in:
parent
cfecbc5522
commit
d0f287772b
3 changed files with 124 additions and 130 deletions
|
@ -1,6 +1,4 @@
|
||||||
use super::{AppVersion, CursorStyle, WindowBounds};
|
use super::{AppVersion, CursorStyle, WindowBounds};
|
||||||
use anyhow::{anyhow, Result};
|
|
||||||
use collections::VecDeque;
|
|
||||||
use crate::{
|
use crate::{
|
||||||
geometry::{
|
geometry::{
|
||||||
rect::RectF,
|
rect::RectF,
|
||||||
|
@ -9,6 +7,8 @@ use crate::{
|
||||||
keymap_matcher::KeymapMatcher,
|
keymap_matcher::KeymapMatcher,
|
||||||
Action, AnyWindowHandle, ClipboardItem, Menu,
|
Action, AnyWindowHandle, ClipboardItem, Menu,
|
||||||
};
|
};
|
||||||
|
use anyhow::{anyhow, Result};
|
||||||
|
use collections::VecDeque;
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use postage::oneshot;
|
use postage::oneshot;
|
||||||
use std::{
|
use std::{
|
||||||
|
@ -330,12 +330,7 @@ impl super::Window for Window {
|
||||||
|
|
||||||
fn set_input_handler(&mut self, _: Box<dyn super::InputHandler>) {}
|
fn set_input_handler(&mut self, _: Box<dyn super::InputHandler>) {}
|
||||||
|
|
||||||
fn prompt(
|
fn prompt(&self, _: super::PromptLevel, _: &str, _: &[&str]) -> oneshot::Receiver<usize> {
|
||||||
&self,
|
|
||||||
_: super::PromptLevel,
|
|
||||||
_: &str,
|
|
||||||
_: &[&str],
|
|
||||||
) -> oneshot::Receiver<usize> {
|
|
||||||
let (done_tx, done_rx) = oneshot::channel();
|
let (done_tx, done_rx) = oneshot::channel();
|
||||||
self.pending_prompts.borrow_mut().push_back(done_tx);
|
self.pending_prompts.borrow_mut().push_back(done_tx);
|
||||||
done_rx
|
done_rx
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
|
|
||||||
use gpui::text_layout::*;
|
|
||||||
use gpui::fonts::{Properties, Weight};
|
use gpui::fonts::{Properties, Weight};
|
||||||
|
use gpui::text_layout::*;
|
||||||
|
|
||||||
#[gpui::test]
|
#[gpui::test]
|
||||||
fn test_wrap_line(cx: &mut gpui::AppContext) {
|
fn test_wrap_line(cx: &mut gpui::AppContext) {
|
||||||
|
@ -121,5 +120,4 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,8 @@ fn main() {
|
||||||
|
|
||||||
log::info!("========== starting zed ==========");
|
log::info!("========== starting zed ==========");
|
||||||
let platform = platform();
|
let platform = platform();
|
||||||
let foreground = std::rc::Rc::new(gpui::executor::Foreground::platform(platform.dispatcher()).unwrap());
|
let foreground =
|
||||||
|
std::rc::Rc::new(gpui::executor::Foreground::platform(platform.dispatcher()).unwrap());
|
||||||
let fplatform = foreground_platform(foreground);
|
let fplatform = foreground_platform(foreground);
|
||||||
let mut app = gpui::App::new(Assets, platform, fplatform).unwrap();
|
let mut app = gpui::App::new(Assets, platform, fplatform).unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue