Skip to content

Commit c513185

Browse files
fixup! chore(ffi/swift): make PkiEnvironment convenience constructor not free function
1 parent 43219c4 commit c513185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto-ffi/bindings/swift/WireCoreCrypto/WireCoreCrypto/CoreCrypto.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ extension PkiEnvironment {
210210
/// - Parameter database: the database to use for this environment
211211
public convenience init(hooks: PkiEnvironmentHooks, database: Database) async throws {
212212
let instance = try await createPkiEnvironment(hooks: hooks, database: database)
213-
self.init(pkiEnvironment: instance)
213+
self.init(unsafeFromRawPointer: instance.uniffiClonePointer())
214214
}
215215
}
216216

0 commit comments

Comments
 (0)