I just needed to do something so I felt useful today
- Eliminated duplicate platform stubs: Created shared macro for macOS/Linux implementations - Extracted cursor restoration logic: Shared helper function for Windows API calls - Refactored cursor application: Helper function for copy/apply/error handling pattern - Reduced ~70 lines of duplicate code while maintaining all functionality
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
// Common types for cursor handling
|
||||
pub mod types;
|
||||
|
||||
// Shared stub implementations for unimplemented platforms
|
||||
mod stub_impl;
|
||||
|
||||
// Windows implementation
|
||||
#[cfg(target_os = "windows")]
|
||||
mod windows;
|
||||
|
||||
Reference in New Issue
Block a user