Skip to content

IOBluetoothDeviceInquiry::foundDevices incorrectly typed #743

Open
@Jacoblightning

Description

@Jacoblightning

Hi,

I noticed that in objc2-io-bluetooth, IOBluetoothDeviceInquiry::foundDevices is typed to return a Retained<NSArray> when it should be returning a Retained<NSArray<IOBluetoothDevice>> as stated in the description:

Return Value:
Returns an NSArray of IOBluetoothDevice objects.

I think this is due to the method signature being func foundDevices() -> [Any]!

This in turn makes it impossible to iterate over the NSArray. (At least I think. I'm still quite new to Rust)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frameworkAffects the framework crates and the translator for thembugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions