Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed May 14, 2024
1 parent 68241ff commit a20722d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion crates/common/src/event_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub enum EventMessage {
/// Focus the previous accessibility Node
FocusPrevAccessibilityNode,
/// Trigger window dragging
DragWindow
DragWindow,
}

impl From<ActionRequestEvent> for EventMessage {
Expand Down
6 changes: 3 additions & 3 deletions crates/components/src/window_drag_area.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use dioxus::prelude::*;
use freya_hooks::use_platform;
use freya_elements::{elements as dioxus_elements, events::MouseEvent};
use freya_hooks::use_platform;

/// Allow dragging the window when the cursor drag this component with a left mouse click.
///
Expand All @@ -25,7 +25,7 @@ use freya_elements::{elements as dioxus_elements, events::MouseEvent};
#[component]
pub fn WindowDragArea(
/// The inner children for the WindowDragArea
children: Element
children: Element,
) -> Element {
let platform = use_platform();

Expand All @@ -40,4 +40,4 @@ pub fn WindowDragArea(
{children}
}
)
}
}
2 changes: 1 addition & 1 deletion crates/core/src/events/events_measurer.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use freya_native_core::{real_dom::NodeImmutable, tree::TreeRef};
use freya_native_core::NodeId;
use freya_native_core::{real_dom::NodeImmutable, tree::TreeRef};

use freya_engine::prelude::*;
use freya_node_state::{Fill, Style, ViewportState};
Expand Down
3 changes: 1 addition & 2 deletions crates/renderer/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use freya_common::EventMessage;
use freya_core::prelude::*;
use freya_engine::prelude::*;
use freya_hooks::PlatformInformation;
use freya_native_core::prelude::NodeImmutableDioxusExt;
use freya_native_core::NodeId;
use futures_task::Waker;
use futures_util::FutureExt;
Expand All @@ -18,7 +19,6 @@ use tracing::info;
use uuid::Uuid;
use winit::dpi::PhysicalSize;
use winit::event_loop::{EventLoop, EventLoopProxy};
use freya_native_core::prelude::NodeImmutableDioxusExt;

use crate::{
accessibility::AccessKitManager, event_loop::run_event_loop, renderer::render_skia,
Expand Down Expand Up @@ -169,7 +169,6 @@ impl<State: 'static + Clone> App<State> {

loop {
{

let fut = async {
select! {
ev = self.event_receiver.recv() => {
Expand Down
3 changes: 2 additions & 1 deletion crates/testing/src/test_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ impl TestingHandler {
let element_id = node.mounted_id();
if let Some(element_id) = element_id {
println!("{:?} / {:?} / {:?}", ev.name, element_id, ev.bubbles);
self.vdom.handle_event(ev.name.into(), data, element_id, ev.bubbles);
self.vdom
.handle_event(ev.name.into(), data, element_id, ev.bubbles);

self.vdom.process_events();
}
Expand Down

0 comments on commit a20722d

Please sign in to comment.