Skip to content

Commit

Permalink
with the latest version of UniFFI, errors that it generates are alrea…
Browse files Browse the repository at this point in the history
…dy LocalizedErrors and don't need conformance in addition
  • Loading branch information
heckj committed Feb 9, 2025
1 parent 438b2e2 commit 17e40df
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Sources/Automerge/Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ public struct DocError: LocalizedError {
}
}

extension FfiDocError: LocalizedError {
public var errorDescription: String? {
switch self {
case let .WrongObjectType(message: msg):
return "WrongObjectType: \(msg)"
case let .Internal(message: msg):
return "AutomergeCore Internal Error: \(msg)"
}
}
}

/// An error that indicates the synchronisation state could not be decoded.
///
/// The error is specific to the Rust language binding infrastructure.
Expand Down

0 comments on commit 17e40df

Please sign in to comment.