Use crate::core::Point instead of prefixing

This commit is contained in:
Héctor Ramón Jiménez 2024-02-22 09:21:19 +01:00
parent d6454b5d0c
commit f693aa4bc4
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,7 @@ use crate::core::renderer;
use crate::core::time::Instant;
use crate::core::widget::operation;
use crate::core::window;
use crate::core::{Event, Size};
use crate::core::{Event, Point, Size};
use crate::futures::futures;
use crate::futures::{Executor, Runtime, Subscription};
use crate::graphics::compositor::{self, Compositor};
@ -774,7 +774,7 @@ pub fn run_command<A, C, E>(
let position = position
.to_logical::<f32>(window.scale_factor());
crate::core::Point::new(position.x, position.y)
Point::new(position.x, position.y)
})
.ok();

View file

@ -10,7 +10,7 @@ use crate::core::mouse;
use crate::core::renderer;
use crate::core::widget::operation;
use crate::core::window;
use crate::core::Size;
use crate::core::{Point, Size};
use crate::futures::futures::channel::mpsc;
use crate::futures::futures::{task, Future, StreamExt};
use crate::futures::{Executor, Runtime, Subscription};
@ -1003,7 +1003,7 @@ fn run_command<A, C, E>(
window.raw.scale_factor(),
);
crate::core::Point::new(position.x, position.y)
Point::new(position.x, position.y)
})
.ok();