From ab2ca70c20032f6f4c665a4979254eb76e8a5574 Mon Sep 17 00:00:00 2001 From: Joshua Booth Date: Fri, 19 Jul 2024 13:37:38 -0700 Subject: [PATCH] Implement Error for RustStringRef --- crates/swift-bridge-build/src/generate_core/rust_string.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swift-bridge-build/src/generate_core/rust_string.swift b/crates/swift-bridge-build/src/generate_core/rust_string.swift index bc05257c..bbf0e494 100644 --- a/crates/swift-bridge-build/src/generate_core/rust_string.swift +++ b/crates/swift-bridge-build/src/generate_core/rust_string.swift @@ -27,7 +27,7 @@ public class RustStringRefMut: RustStringRef { super.init(ptr: ptr) } } -public class RustStringRef { +public class RustStringRef: Error { var ptr: UnsafeMutableRawPointer public init(ptr: UnsafeMutableRawPointer) {