Remove generic parameter T from EventLoopWindowTarget (#3298)

This commit is contained in:
Mads Marquart 2024-01-13 21:36:53 +01:00 committed by GitHub
parent 169cd39f93
commit 22311802b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 174 additions and 210 deletions

View file

@ -75,9 +75,9 @@ impl PartialEq for CustomCursor {
impl Eq for CustomCursor {}
impl CustomCursor {
pub(crate) fn build<T>(
pub(crate) fn build(
builder: CustomCursorBuilder,
window_target: &EventLoopWindowTarget<T>,
window_target: &EventLoopWindowTarget,
) -> Self {
match builder {
CustomCursorBuilder::Image(image) => Self::build_spawn(
@ -110,8 +110,8 @@ impl CustomCursor {
}
}
fn build_spawn<T, F, S>(
window_target: &EventLoopWindowTarget<T>,
fn build_spawn<F, S>(
window_target: &EventLoopWindowTarget,
task: F,
animation: bool,
) -> CustomCursor
@ -170,9 +170,9 @@ impl CustomCursor {
this
}
pub(crate) fn build_async<T>(
pub(crate) fn build_async(
builder: CustomCursorBuilder,
window_target: &EventLoopWindowTarget<T>,
window_target: &EventLoopWindowTarget,
) -> CustomCursorFuture {
let CustomCursor { animation, state } = Self::build(builder, window_target);
let binding = state.get(window_target.runner.main_thread()).borrow();