From 880991e40274fd347cff7b2f370ea325fa24b0bf Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 1 Jul 2026 19:14:54 +0100 Subject: [PATCH] Apply suggested fix to libcc2rs/src/io.rs from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- libcc2rs/src/io.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcc2rs/src/io.rs b/libcc2rs/src/io.rs index 02389447..fef060ce 100644 --- a/libcc2rs/src/io.rs +++ b/libcc2rs/src/io.rs @@ -63,7 +63,7 @@ pub fn cerr() -> Ptr { /// # Safety /// /// The caller must ensure that the returned pointer is not used after the -// thread finishes. +/// thread finishes. pub unsafe fn cin_unsafe() -> *mut std::fs::File { UNSAFE_STDIN.with(UnsafeCell::get) } @@ -71,7 +71,7 @@ pub unsafe fn cin_unsafe() -> *mut std::fs::File { /// # Safety /// /// The caller must ensure that the returned pointer is not used after the -// thread finishes. +/// thread finishes. pub unsafe fn cout_unsafe() -> *mut std::fs::File { UNSAFE_STDOUT.with(UnsafeCell::get) } @@ -79,7 +79,7 @@ pub unsafe fn cout_unsafe() -> *mut std::fs::File { /// # Safety /// /// The caller must ensure that the returned pointer is not used after the -// thread finishes. +/// thread finishes. pub unsafe fn cerr_unsafe() -> *mut std::fs::File { UNSAFE_STDERR.with(UnsafeCell::get) }