summaryrefslogtreecommitdiff
path: root/rust/src/backgroundtask.rs
diff options
context:
space:
mode:
authorRubens Brandao <git@rubens.io>2024-04-10 17:58:05 -0300
committerRubens Brandao <git@rubens.io>2024-04-10 18:02:09 -0300
commit37b51462dcf26dc40ac5d7e82acdfd4cbe754157 (patch)
tree6a6bb04329059518761f6b5be5506d32a6b6c47c /rust/src/backgroundtask.rs
parent16fc31044f3b202200a6f03a538cda5f985bbecb (diff)
fix the array implementation using GAT
Diffstat (limited to 'rust/src/backgroundtask.rs')
-rw-r--r--rust/src/backgroundtask.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/backgroundtask.rs b/rust/src/backgroundtask.rs
index 1eb090d7..e62cfbcb 100644
--- a/rust/src/backgroundtask.rs
+++ b/rust/src/backgroundtask.rs
@@ -112,13 +112,13 @@ unsafe impl CoreOwnedArrayProvider for BackgroundTask {
}
}
-unsafe impl<'a> CoreArrayWrapper<'a> for BackgroundTask {
- type Wrapped = Guard<'a, BackgroundTask>;
+unsafe impl CoreArrayWrapper for BackgroundTask {
+ type Wrapped<'a> = Guard<'a, BackgroundTask>;
- unsafe fn wrap_raw(
+ unsafe fn wrap_raw<'a>(
raw: &'a *mut BNBackgroundTask,
context: &'a (),
- ) -> Guard<'a, BackgroundTask> {
+ ) -> Self::Wrapped<'a> {
Guard::new(BackgroundTask::from_raw(*raw), context)
}
}