File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
18
18
- ` refitAccelerationStructure_descriptor_destination_scratchBuffer_scratchBufferOffset `
19
19
- ` refitAccelerationStructure_descriptor_destination_scratchBuffer_scratchBufferOffset_options `
20
20
21
+ ### Removed
22
+ * ** BREAKING** : Removed the ` MainThreadMarker ` argument from the closure
23
+ passed to ` MainThreadBound::get_on_main ` .
24
+
21
25
22
26
## icrate 0.0.4 - 2023-07-31
23
27
Original file line number Diff line number Diff line change @@ -311,10 +311,10 @@ impl<T> MainThreadBound<T> {
311
311
#[ inline]
312
312
pub fn get_on_main < F , R > ( & self , f : F ) -> R
313
313
where
314
- F : Send + FnOnce ( & T , MainThreadMarker ) -> R ,
314
+ F : Send + FnOnce ( & T ) -> R ,
315
315
R : Send ,
316
316
{
317
- MainThreadMarker :: run_on_main ( |mtm| f ( self . get ( mtm) , mtm ) )
317
+ MainThreadMarker :: run_on_main ( |mtm| f ( self . get ( mtm) ) )
318
318
}
319
319
320
320
/// Access the item mutably on the main thread.
@@ -323,10 +323,10 @@ impl<T> MainThreadBound<T> {
323
323
#[ inline]
324
324
pub fn get_on_main_mut < F , R > ( & mut self , f : F ) -> R
325
325
where
326
- F : Send + FnOnce ( & mut T , MainThreadMarker ) -> R ,
326
+ F : Send + FnOnce ( & mut T ) -> R ,
327
327
R : Send ,
328
328
{
329
- MainThreadMarker :: run_on_main ( |mtm| f ( self . get_mut ( mtm) , mtm ) )
329
+ MainThreadMarker :: run_on_main ( |mtm| f ( self . get_mut ( mtm) ) )
330
330
}
331
331
}
332
332
You can’t perform that action at this time.
0 commit comments