Skip to content

Commit db71f4e

Browse files
committed
PR feedback & fix tests
1 parent 235c460 commit db71f4e

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

crates/swift-integration-tests/src/async_function.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This is a temporary workaround until https://github.com/chinedufn/swift-bridge/issues/270
2+
// is closed. When tests are compiled they have `-D warnings` (deny warnings) enabled, so
3+
// tests won't even compile unless this warning is ignored.
14
#![allow(dead_code)]
25

36
#[swift_bridge::bridge]

crates/swift-integration-tests/src/option.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! See also: crates/swift-bridge-ir/src/codegen/codegen_tests/option_codegen_tests.rs
22
3+
use ffi::OptTestOpaqueSwiftType;
4+
35
#[swift_bridge::bridge]
46
mod ffi {
57
#[swift_bridge(swift_repr = "struct")]
@@ -299,8 +301,8 @@ fn rust_reflect_option_ref_opaque_rust_type(
299301
arg
300302
}
301303
pub fn rust_reflect_option_opaque_swift_type(
302-
arg: Option<ffi::OptTestOpaqueSwiftType>,
303-
) -> Option<ffi::OptTestOpaqueSwiftType> {
304+
arg: Option<OptTestOpaqueSwiftType>,
305+
) -> Option<OptTestOpaqueSwiftType> {
304306
arg
305307
}
306308

crates/swift-integration-tests/src/result.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
//! See also: crates/swift-bridge-ir/src/codegen/codegen_tests/result_codegen_tests.rs
2+
// This is a temporary workaround until https://github.com/chinedufn/swift-bridge/issues/270
3+
// is closed. When tests are compiled they have `-D warnings` (deny warnings) enabled, so
4+
// tests won't even compile unless this warning is ignored.
25
#![allow(dead_code)]
36

47
#[swift_bridge::bridge]

0 commit comments

Comments
 (0)