Skip to content

Commit

Permalink
add FileDescriptorRepresentable conformance to FileDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Mar 31, 2024
1 parent 4eda5d9 commit 3bd9d02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/IORing/FileHandle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ extension FileHandle: Hashable {
_fileDescriptor.hash(into: &hasher)
}
}

extension FileDescriptor: FileDescriptorRepresentable {
public var fileDescriptor: CInt { rawValue }
}

0 comments on commit 3bd9d02

Please sign in to comment.