@@ -25,7 +25,7 @@ internal import Dispatch
25
25
26
26
/// Output protocol specifies the set of methods that a type must implement to
27
27
/// serve as the output target for a subprocess.
28
-
28
+ ///
29
29
/// Instead of developing custom implementations of `OutputProtocol`, use the
30
30
/// default implementations provided by the `Subprocess` library to specify the
31
31
/// output handling requirements.
@@ -52,7 +52,7 @@ extension OutputProtocol {
52
52
/// A concrete output type for subprocesses that indicates that the
53
53
/// subprocess should not collect or redirect output from the child
54
54
/// process.
55
-
55
+ ///
56
56
/// On Unix-like systems, `DiscardedOutput` redirects the
57
57
/// standard output of the subprocess to `/dev/null`, while on Windows,
58
58
/// redirects the output to `NUL`.
@@ -79,7 +79,7 @@ public struct DiscardedOutput: OutputProtocol {
79
79
80
80
/// A concrete output type for subprocesses that writes output
81
81
/// to a specified file descriptor.
82
-
82
+ ///
83
83
/// Developers have the option to instruct the `Subprocess` to automatically
84
84
/// close the related `FileDescriptor` after the subprocess is spawned.
85
85
public struct FileDescriptorOutput : OutputProtocol {
@@ -354,12 +354,12 @@ extension OutputProtocol where OutputType == Void {
354
354
#if SubprocessSpan
355
355
/// Convert the output from raw span to expected output type
356
356
public func output( from span: RawSpan ) throws {
357
- // noop
357
+ fatalError ( " Unexpected call to \( #function ) " )
358
358
}
359
359
#endif
360
360
/// Convert the output from a sequence of 8-bit unsigned integers to expected output type.
361
361
public func output( from buffer: some Sequence < UInt8 > ) throws {
362
- // noop
362
+ fatalError ( " Unexpected call to \( #function ) " )
363
363
}
364
364
}
365
365
0 commit comments