Skip to content

Commit

Permalink
Clean up long line
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrubin committed Sep 20, 2016
1 parent 960175e commit 4b6b8df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public struct Generator: Equatable {

// Take 4 bytes from the hash, starting at the given byte offset
let truncatedHashPtr = ptr + Int(offset)
let truncatedHash = truncatedHashPtr.withMemoryRebound(to: UInt32.self, capacity: 1, { $0.pointee })
let truncatedHash = truncatedHashPtr.withMemoryRebound(to: UInt32.self, capacity: 1) {
$0.pointee
}
return truncatedHash
}

Expand Down

0 comments on commit 4b6b8df

Please sign in to comment.