Fix some more warnings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
})),
|
||||
)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user