Compare commits

..

1 Commits

Author SHA1 Message Date
Ryan Walters
39a5df1ffd fix: use c-style strings instead of manual termination, cast pointer, use then_some 2025-09-02 08:52:08 -05:00
2 changed files with 2 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ impl Platform {
handle => handle,
};
// Identify the file type of the handle
// Identify the file type of the handle and whether it's 'well known' (i.e. we trust it to be a reasonable output destination)
let (well_known, file_type) = match unsafe {
use windows::Win32::Foundation::HANDLE;
GetFileType(HANDLE(handle))

View File

@@ -12,6 +12,7 @@ mod emscripten;
pub mod buffered_writer;
pub mod tracing_buffer;
/// Cross-platform abstraction layer providing unified APIs for platform-specific operations.
pub trait CommonPlatform {
/// Platform-specific sleep function (required due to Emscripten's non-standard sleep requirements).