diff --git a/src/clients/wayland/wlr_data_control/mod.rs b/src/clients/wayland/wlr_data_control/mod.rs index 1cf76a5..5bc6312 100644 --- a/src/clients/wayland/wlr_data_control/mod.rs +++ b/src/clients/wayland/wlr_data_control/mod.rs @@ -294,15 +294,15 @@ impl DataControlOfferHandler for Environment { } impl DataControlSourceHandler for Environment { - fn accept_mime( - &mut self, - _conn: &Connection, - _qh: &QueueHandle, - _source: &ZwlrDataControlSourceV1, - mime: Option, - ) { - debug!("Accepted mime type: {mime:?}"); - } + // fn accept_mime( + // &mut self, + // _conn: &Connection, + // _qh: &QueueHandle, + // _source: &ZwlrDataControlSourceV1, + // mime: Option, + // ) { + // debug!("Accepted mime type: {mime:?}"); + // } /// Writes the current clipboard item to 'paste' it /// upon request from a compositor client. diff --git a/src/clients/wayland/wlr_data_control/source.rs b/src/clients/wayland/wlr_data_control/source.rs index a184d8d..b8f2a1c 100644 --- a/src/clients/wayland/wlr_data_control/source.rs +++ b/src/clients/wayland/wlr_data_control/source.rs @@ -10,13 +10,13 @@ use wayland_protocols_wlr::data_control::v1::client::zwlr_data_control_source_v1 pub struct DataControlSourceData {} pub trait DataControlSourceDataExt: Send + Sync { - fn data_source_data(&self) -> &DataControlSourceData; + // fn data_source_data(&self) -> &DataControlSourceData; } impl DataControlSourceDataExt for DataControlSourceData { - fn data_source_data(&self) -> &DataControlSourceData { - self - } + // fn data_source_data(&self) -> &DataControlSourceData { + // self + // } } /// Handler trait for `DataSource` events. @@ -24,13 +24,13 @@ impl DataControlSourceDataExt for DataControlSourceData { /// The functions defined in this trait are called as `DataSource` events are received from the compositor. pub trait DataControlSourceHandler: Sized { /// This may be called multiple times, once for each accepted mime type from the destination, if any. - fn accept_mime( - &mut self, - conn: &Connection, - qh: &QueueHandle, - source: &ZwlrDataControlSourceV1, - mime: Option, - ); + // fn accept_mime( + // &mut self, + // conn: &Connection, + // qh: &QueueHandle, + // source: &ZwlrDataControlSourceV1, + // mime: Option, + // ); /// The client has requested the data for this source to be sent. /// Send the data, then close the fd. diff --git a/src/ironvar.rs b/src/ironvar.rs index e99a3b0..190fea2 100644 --- a/src/ironvar.rs +++ b/src/ironvar.rs @@ -93,7 +93,7 @@ impl IronVar { /// Sets the current variable value. /// The change is broadcast to all receivers. fn set(&mut self, value: Option) { - self.value = value.clone(); + self.value.clone_from(&value); send!(self.tx, value); } diff --git a/src/modules/launcher/item.rs b/src/modules/launcher/item.rs index 924b74a..07d7fb3 100644 --- a/src/modules/launcher/item.rs +++ b/src/modules/launcher/item.rs @@ -40,7 +40,7 @@ impl Item { let id = info.id; if self.windows.is_empty() { - self.name = info.title.clone(); + self.name.clone_from(&info.title); } let window = Window::from(info); @@ -59,7 +59,7 @@ impl Item { pub fn set_window_name(&mut self, window_id: usize, name: String) { if let Some(window) = self.windows.get_mut(&window_id) { if let OpenState::Open { focused: true, .. } = window.open_state { - self.name = name.clone(); + self.name.clone_from(&name); } window.name = name; diff --git a/src/modules/music/mod.rs b/src/modules/music/mod.rs index d546ef4..a8bb7b0 100644 --- a/src/modules/music/mod.rs +++ b/src/modules/music/mod.rs @@ -409,7 +409,7 @@ impl Module