Skip to content

Commit

Permalink
Ignore line length linting violation for C-bridging callback
Browse files Browse the repository at this point in the history
  • Loading branch information
exPHAT committed Jul 20, 2023
1 parent abac9ea commit f516eb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SwiftWhisper/Whisper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public class Whisper {
return true
}

// swiftlint:disable line_length
params.progress_callback = { (_: OpaquePointer?, _: OpaquePointer?, progress: Int32, userData: UnsafeMutableRawPointer?) in
// swiftlint:enable line_length
guard let userData else { return }
let whisper = Unmanaged<Whisper>.fromOpaque(userData).takeUnretainedValue()

Expand Down

0 comments on commit f516eb8

Please sign in to comment.