Specify some omitted error types

This commit is contained in:
Guillaume Lessard authored and Guillaume Lessard committed 2026-07-13 10:40:41 -07:00
1 parent e2ae946862
commit 2d0912acba
1 file changed
+2 -2
+2 -2
View File
@@ -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,