From b18bdad6c94a8e234108d531f0c480c7104abebe Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 22 Feb 2026 17:08:21 -0800 Subject: [Rust] Misc documentation and cleanup --- rust/src/main_thread.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rust/src/main_thread.rs') diff --git a/rust/src/main_thread.rs b/rust/src/main_thread.rs index f6fdc7cf..cf4c37f1 100644 --- a/rust/src/main_thread.rs +++ b/rust/src/main_thread.rs @@ -21,9 +21,9 @@ impl MainThreadActionExecutor { } } -/// Execute passed function on the main thread. Returns `None` if already running on the main thread. +/// Execute the passed function on the main thread. Returns `None` if already running on the main thread. /// -/// When not running in headless this will block the UI. +/// When not running in headless, this will block the UI. pub fn execute_on_main_thread(f: F) -> Option> { let boxed_executor = Box::new(MainThreadActionExecutor { func: Box::new(f) }); let raw_executor = Box::into_raw(boxed_executor); @@ -39,9 +39,9 @@ pub fn execute_on_main_thread(f: F) -> Option(f: F) { let boxed_executor = Box::new(MainThreadActionExecutor { func: Box::new(f) }); let raw_executor = Box::into_raw(boxed_executor); -- cgit v1.3.1