Fix some more warnings

This commit is contained in:
Piotr Osiewicz 2023-11-27 15:49:47 +01:00
parent 30af3ffaf3
commit 8ca9f4e12a
3 changed files with 10 additions and 10 deletions

View file

@ -233,9 +233,11 @@ impl Render for CollabTitlebarItem {
.child(IconButton::new("leave-call", ui::Icon::Exit).on_click({
let workspace = workspace.clone();
move |_, cx| {
workspace.update(cx, |this, cx| {
this.call_state().hang_up(cx).detach();
});
workspace
.update(cx, |this, cx| {
this.call_state().hang_up(cx).detach();
})
.log_err();
}
})),
)

View file

@ -1,8 +1,6 @@
use gpui::{
div, AnyElement, Div, IntoElement as _, ParentElement as _, Render, RenderOnce, Styled,
ViewContext, WindowContext,
div, AnyElement, Div, IntoElement as _, ParentElement as _, RenderOnce, Styled, WindowContext,
};
use ui::Avatar;
#[derive(Default)]
pub(crate) struct FacePile {