diff --git a/Sources/WasmKit/Execution/Errors.swift b/Sources/WasmKit/Execution/Errors.swift index 6262a769..3d3996ad 100644 --- a/Sources/WasmKit/Execution/Errors.swift +++ b/Sources/WasmKit/Execution/Errors.swift @@ -24,7 +24,7 @@ struct Backtrace: CustomStringConvertible, Sendable { } /// An error that occurs during execution of a WebAssembly module. -struct Trap: Error, CustomStringConvertible { +public struct Trap: Error, CustomStringConvertible { /// The reason for the trap. var reason: TrapReason diff --git a/Sources/WasmKitGDBHandler/WasmKitGDBHandler.swift b/Sources/WasmKitGDBHandler/WasmKitGDBHandler.swift index 246ea72c..6cacef1e 100644 --- a/Sources/WasmKitGDBHandler/WasmKitGDBHandler.swift +++ b/Sources/WasmKitGDBHandler/WasmKitGDBHandler.swift @@ -86,7 +86,6 @@ } private func hexDump(_ value: I, endianness: Endianness) -> String { - var buffer = self.allocator.buffer(capacity: MemoryLayout.size) buffer.writeInteger(value, endianness: endianness) return buffer.hexDump(format: .compact)