diff --git a/src-rs/lib.rs b/src-rs/lib.rs index 3933189..c0ff8fa 100644 --- a/src-rs/lib.rs +++ b/src-rs/lib.rs @@ -7,7 +7,6 @@ mod swift_arg; mod swift_ret; mod types; -pub use autorelease::*; pub use swift::*; pub use swift_arg::*; pub use swift_ret::*; diff --git a/src-rs/swift.rs b/src-rs/swift.rs index 0b4f370..c2af937 100644 --- a/src-rs/swift.rs +++ b/src-rs/swift.rs @@ -31,7 +31,7 @@ pub trait SwiftObject { /// The inner pointer is private, /// and the returned [`SwiftRef`] is bound to the lifetime of the original [`SRObject`], /// so if you use `swift-rs` as normal this function should be safe. - unsafe fn swift_ref(&self) -> SwiftRef + unsafe fn swift_ref(&self) -> SwiftRef<'_, Self> where Self: Sized, {