Skip to content

Unnessecary use of Option<u8> #45

Description

@QuantumEF

The following functions return an option:

pub fn usb_bus(&self) -> Option<u8> {
// TODO: Why is this an option?
Some(self.0.usb_bus)
}

pub fn usb_addr(&self) -> Option<u8> {
// TODO: Why is this an option?
Some(self.0.usb_addr)
}

Is there a specific reason for this, or was it just an oversight/assumption when doing initial work for the BladeRF bindings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions