Skip to content

Fix non camel case warning ffi types - #361

Merged
chinedufn merged 25 commits into
chinedufn:masterfrom
Choochmeque:fix-non-camel-case-warning-ffi-types
Dec 19, 2025
Merged

Fix non camel case warning ffi types#361
chinedufn merged 25 commits into
chinedufn:masterfrom
Choochmeque:fix-non-camel-case-warning-ffi-types

Conversation

@Choochmeque

Copy link
Copy Markdown
Contributor

Just cosmetic fix. It removes warning of non-camel case type.

image

# Conflicts:
#	SwiftRustIntegrationTestRunner/SwiftRustIntegrationTestRunner/AsyncSwiftFunctions.swift
#	SwiftRustIntegrationTestRunner/SwiftRustIntegrationTestRunner/Result.swift
#	SwiftRustIntegrationTestRunner/SwiftRustIntegrationTestRunnerTests/AsyncTests.swift
#	SwiftRustIntegrationTestRunner/SwiftRustIntegrationTestRunnerTests/ResultTests.swift
#	crates/swift-bridge-ir/src/bridged_type/bridgeable_result.rs
#	crates/swift-bridge-ir/src/codegen/codegen_tests/async_function.rs
#	crates/swift-bridge-ir/src/codegen/codegen_tests/result.rs
#	crates/swift-bridge-ir/src/codegen/generate_swift.rs
#	crates/swift-bridge-ir/src/parsed_extern_fn/to_extern_c_fn.rs
#	crates/swift-bridge-ir/src/parsed_extern_fn/to_rust_impl_call_swift.rs
#	crates/swift-integration-tests/src/argument_attributes/argument_label.rs
#	crates/swift-integration-tests/src/async_function.rs
#	crates/swift-integration-tests/src/result.rs
@Choochmeque

Copy link
Copy Markdown
Contributor Author

Hi @chinedufn, please review when you have time.

@chinedufn

Copy link
Copy Markdown
Owner

You can allow it on the entire module so that we only need to allow it in on place

let t = quote! {
#[allow(non_snake_case)]
#(#module_attributes)*
#vis mod #mod_name {
#module_inner
}
};
t.to_tokens(tokens);

@Choochmeque

Copy link
Copy Markdown
Contributor Author

You can allow it on the entire module so that we only need to allow it in on place

Fixed. Thank you!

@chinedufn
chinedufn merged commit 82b0885 into chinedufn:master Dec 19, 2025
5 checks passed
@Choochmeque
Choochmeque deleted the fix-non-camel-case-warning-ffi-types branch December 19, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants