Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
trasch committed Jun 11, 2024
1 parent 19ff21b commit 39992f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 7 additions & 5 deletions Sources/GISTools/GeoJson/WKBCoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,13 @@ extension WKBCoder {
into: inout T)
throws
{
try read(
bytes: bytes,
offset: &offset,
byteCount: MemoryLayout<T>.size,
into: &into)
try withUnsafeMutablePointer(to: &into) { into in
try read(
bytes: bytes,
offset: &offset,
byteCount: MemoryLayout<T>.size,
into: into)
}
}

private static func read(
Expand Down
2 changes: 0 additions & 2 deletions Tests/GISToolsTests/Extensions/StringExtensions.swift

This file was deleted.

0 comments on commit 39992f7

Please sign in to comment.