Change file-engine to be file_engine for consistency

This commit is contained in:
Jonathan Kelley committed 2024-09-17 17:49:06 -07:00
1 parent 459dbde697
commit fd9229a768
8 files changed
+24 -24

No files matched your search

+4 -4
View File
@@ -59,7 +59,7 @@ impl DragData {
}
impl crate::HasFileData for DragData {
#[cfg(feature = "file-engine")]
#[cfg(feature = "file_engine")]
fn files(&self) -> Option<std::sync::Arc<dyn crate::file_data::FileEngine>> {
self.inner.files()
}
@@ -112,7 +112,7 @@ impl PointerInteraction for DragData {
pub struct SerializedDragData {
pub mouse: crate::point_interaction::SerializedPointInteraction,
#[cfg(feature = "file-engine")]
#[cfg(feature = "file_engine")]
#[serde(default)]
files: Option<crate::file_data::SerializedFileEngine>,
}
@@ -122,7 +122,7 @@ impl SerializedDragData {
fn new(drag: &DragData) -> Self {
Self {
mouse: crate::point_interaction::SerializedPointInteraction::from(drag),
#[cfg(feature = "file-engine")]
#[cfg(feature = "file_engine")]
files: None,
}
}
@@ -137,7 +137,7 @@ impl HasDragData for SerializedDragData {
#[cfg(feature = "serialize")]
impl crate::file_data::HasFileData for SerializedDragData {
#[cfg(feature = "file-engine")]
#[cfg(feature = "file_engine")]
fn files(&self) -> Option<std::sync::Arc<dyn crate::file_data::FileEngine>> {
self.files
.as_ref()