cargo fmt
This commit is contained in:
parent
6bc77815ef
commit
4c65853f51
4 changed files with 19 additions and 19 deletions
|
|
@ -43,8 +43,8 @@ impl RawSurface for WlSurface {
|
|||
pub trait RawSurface {
|
||||
/// # Safety
|
||||
///
|
||||
/// returned pointer must be a valid `*mut wl_surface` pointer, and it must remain
|
||||
/// valid for as long as `RawSurface` object is alive.
|
||||
/// returned pointer must be a valid `*mut wl_surface` pointer, and it must
|
||||
/// remain valid for as long as `RawSurface` object is alive.
|
||||
unsafe fn get_ptr(&mut self) -> *mut c_void;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -115,7 +115,8 @@ where
|
|||
{
|
||||
dnd_state.set_actions(action, preferred_action);
|
||||
self.dnd_state.selected_mime = Some(mime_type.clone());
|
||||
dnd_state.accept_mime_type(self.dnd_state.accept_ctr, Some(mime_type.to_string()));
|
||||
dnd_state
|
||||
.accept_mime_type(self.dnd_state.accept_ctr, Some(mime_type.to_string()));
|
||||
self.dnd_state.accept_ctr = self.dnd_state.accept_ctr.wrapping_add(1);
|
||||
}
|
||||
(s.clone(), Some(dest))
|
||||
|
|
|
|||
|
|
@ -488,7 +488,9 @@ impl<T: 'static + Clone> DataSourceHandler for State<T> {
|
|||
#[cfg(feature = "dnd")]
|
||||
{
|
||||
if let Some(s) = self.dnd_state.sender.as_ref() {
|
||||
_ = s.send(DndEvent::Source(crate::dnd::SourceEvent::Mime(m.map(|s| MimeType::from(Cow::Owned(s))))));
|
||||
_ = s.send(DndEvent::Source(crate::dnd::SourceEvent::Mime(
|
||||
m.map(|s| MimeType::from(Cow::Owned(s))),
|
||||
)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue