Skip to content

Commit

Permalink
Resolve warning.
Browse files Browse the repository at this point in the history
```
FuzzTesting/Sources/FuzzAsyncMessageSequence/main.swift:27:21: warning: immutable value 'msg' was never used; consider replacing with '_' or removing it
      for try await msg in decoding {
                    ^~~
                    _
```
  • Loading branch information
thomasvl committed Mar 15, 2024
1 parent 04b5b5d commit daa0f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FuzzTesting/Sources/FuzzAsyncMessageSequence/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public func FuzzAsyncMessageSequence(_ start: UnsafeRawPointer, _ count: Int) ->
let semaphore = DispatchSemaphore(value: 0)
Task {
do {
for try await msg in decoding {
for try await _ in decoding {
// TODO: Test serialization for completeness.
// We could serialize individual messages like this:
// let _: [UInt8] = try! msg.serializedBytes()
Expand Down

0 comments on commit daa0f14

Please sign in to comment.