chore: audit components
This commit is contained in:
@@ -10,6 +10,7 @@ use gpui::{
|
||||
};
|
||||
use gpui_native_icons::IconRole;
|
||||
use gpui_native_theme::Size;
|
||||
use gpui_native_utils::ResultLogErr as _;
|
||||
|
||||
use crate::button::{Button, ButtonVariant};
|
||||
use crate::common::Sizable;
|
||||
@@ -25,6 +26,7 @@ type CopiedHandler = Box<dyn Fn(&mut App)>;
|
||||
|
||||
/// A quiet icon button that copies a value to the system clipboard.
|
||||
#[derive(IntoElement)]
|
||||
#[must_use]
|
||||
pub struct ClipboardButton {
|
||||
id: ElementId,
|
||||
value: SharedString,
|
||||
@@ -153,9 +155,9 @@ impl RenderOnce for ClipboardButton {
|
||||
cx.notify();
|
||||
}
|
||||
})
|
||||
.ok();
|
||||
.log_err();
|
||||
})
|
||||
.ok();
|
||||
.log_err();
|
||||
});
|
||||
|
||||
copied.update(cx, |state, _| {
|
||||
|
||||
Reference in New Issue
Block a user