From 2d0912acbaace75f458a472832f26b2611ef7fba Mon Sep 17 00:00:00 2001 From: Guillaume Lessard Date: Tue, 7 Jul 2026 10:14:28 -0700 Subject: [PATCH] Specify some omitted error types --- Sources/System/IORing/IORing.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/System/IORing/IORing.swift b/Sources/System/IORing/IORing.swift index 94d1fd5..27d27a0 100644 --- a/Sources/System/IORing/IORing.swift +++ b/Sources/System/IORing/IORing.swift @@ -715,7 +715,7 @@ public struct IORing: ~Copyable { } /// Removes registered files from the ring - public func unregisterFiles() throws { + public func unregisterFiles() throws(Errno) { _ = try _ioUringRegister( ringDescriptor: ringDescriptor, opcode: RegistrationOps.unregisterFiles.rawValue, @@ -781,7 +781,7 @@ public struct IORing: ~Copyable { RegisteredResources(resources: _registeredBuffers) } - public func unregisterBuffers() throws { + public func unregisterBuffers() throws(Errno) { _ = try _ioUringRegister( ringDescriptor: self.ringDescriptor, opcode: RegistrationOps.unregisterBuffers.rawValue,