From 4504c40c6562c5cb4038b0658b45c405e723c2b9 Mon Sep 17 00:00:00 2001 From: Carmen Date: Mon, 10 Mar 2025 00:18:11 +0700 Subject: [PATCH] lib/std/os/uefi/protocol/file.zig: change io adapter fns to const ptr --- lib/std/os/uefi/protocol/file.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/os/uefi/protocol/file.zig b/lib/std/os/uefi/protocol/file.zig index d69ae14ce61d..b328ae42b922 100644 --- a/lib/std/os/uefi/protocol/file.zig +++ b/lib/std/os/uefi/protocol/file.zig @@ -28,15 +28,15 @@ pub const File = extern struct { pub const Reader = io.Reader(*const File, ReadError, readFn); pub const Writer = io.Writer(*const File, WriteError, writeFn); - pub fn seekableStream(self: *File) SeekableStream { + pub fn seekableStream(self: *const File) SeekableStream { return .{ .context = self }; } - pub fn reader(self: *File) Reader { + pub fn reader(self: *const File) Reader { return .{ .context = self }; } - pub fn writer(self: *File) Writer { + pub fn writer(self: *const File) Writer { return .{ .context = self }; }