Skip to content

Commit 086e738

Browse files
committed
minor optimization
1 parent 6e06cfd commit 086e738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SDL/Renderer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public final class Renderer {
9494

9595
defer { sourcePointer?.deallocate(capacity: 1) }
9696

97-
if var rect = source {
97+
if let rect = source {
9898

9999
sourcePointer = UnsafeMutablePointer.allocate(capacity: 1)
100100

@@ -109,7 +109,7 @@ public final class Renderer {
109109

110110
defer { destinationPointer?.deallocate(capacity: 1) }
111111

112-
if var rect = destination {
112+
if let rect = destination {
113113

114114
destinationPointer = UnsafeMutablePointer.allocate(capacity: 1)
115115

0 commit comments

Comments
 (0)