Skip to content

Commit 119b38e

Browse files
committed
Swiftify: Fix 'no calls to throwing function' warnings.
1 parent 4bddb3a commit 119b38e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Macros/Sources/SwiftMacros/SwiftifyImportMacro.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,14 +677,14 @@ struct CountedOrSizedReturnPointerThunkBuilder: PointerBoundsThunkBuilder {
677677
if unsafe _resultValue == nil {
678678
return nil
679679
} else {
680-
return unsafe \(raw: try cast)(\(raw: startLabel): _resultValue!, count: Int(\(countExpr)))
680+
return unsafe \(raw: cast)(\(raw: startLabel): _resultValue!, count: Int(\(countExpr)))
681681
}
682682
}()
683683
"""
684684
}
685685
return
686686
"""
687-
unsafe \(raw: try cast)(\(raw: startLabel): \(call), count: Int(\(countExpr)))
687+
unsafe \(raw: cast)(\(raw: startLabel): \(call), count: Int(\(countExpr)))
688688
"""
689689
}
690690
}

0 commit comments

Comments
 (0)