mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-14 02:43:19 +03:00
Remove Clone
bound for HighlightedLabel
This commit is contained in:
parent
3ac7ef90ef
commit
fa3916d1bf
@ -122,11 +122,11 @@ mod stories {
|
||||
use super::*;
|
||||
|
||||
#[derive(Element)]
|
||||
pub struct InputStory<S: 'static + Send + Sync + Clone> {
|
||||
pub struct InputStory<S: 'static + Send + Sync> {
|
||||
state_type: PhantomData<S>,
|
||||
}
|
||||
|
||||
impl<S: 'static + Send + Sync + Clone> InputStory<S> {
|
||||
impl<S: 'static + Send + Sync> InputStory<S> {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
state_type: PhantomData,
|
||||
|
@ -107,8 +107,8 @@ impl<S: 'static + Send + Sync> Label<S> {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Element, Clone)]
|
||||
pub struct HighlightedLabel<S: 'static + Send + Sync + Clone> {
|
||||
#[derive(Element)]
|
||||
pub struct HighlightedLabel<S: 'static + Send + Sync> {
|
||||
state_type: PhantomData<S>,
|
||||
label: SharedString,
|
||||
color: LabelColor,
|
||||
@ -116,7 +116,7 @@ pub struct HighlightedLabel<S: 'static + Send + Sync + Clone> {
|
||||
strikethrough: bool,
|
||||
}
|
||||
|
||||
impl<S: 'static + Send + Sync + Clone> HighlightedLabel<S> {
|
||||
impl<S: 'static + Send + Sync> HighlightedLabel<S> {
|
||||
pub fn new(label: impl Into<SharedString>, highlight_indices: Vec<usize>) -> Self {
|
||||
Self {
|
||||
state_type: PhantomData,
|
||||
@ -214,11 +214,11 @@ mod stories {
|
||||
use super::*;
|
||||
|
||||
#[derive(Element)]
|
||||
pub struct LabelStory<S: 'static + Send + Sync + Clone> {
|
||||
pub struct LabelStory<S: 'static + Send + Sync> {
|
||||
state_type: PhantomData<S>,
|
||||
}
|
||||
|
||||
impl<S: 'static + Send + Sync + Clone> LabelStory<S> {
|
||||
impl<S: 'static + Send + Sync> LabelStory<S> {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
state_type: PhantomData,
|
||||
|
Loading…
Reference in New Issue
Block a user