Skip to content

Commit 83fe4b2

Browse files
committed
ndk: Fix clippy warnings in ndk::midi
1 parent 1ea5b32 commit 83fe4b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ndk/src/midi/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl MidiDevice {
153153
/// Opens the input port so that the client can send data to it. Note that the returned
154154
/// [`MidiInputPort`] is intentionally `!Send` and `!Sync`; please use
155155
/// [`safe::SafeMidiDevice::open_safe_input_port`] if you need the thread-safe version.
156-
pub fn open_input_port(&self, port_number: i32) -> Result<MidiInputPort> {
156+
pub fn open_input_port(&self, port_number: i32) -> Result<MidiInputPort<'_>> {
157157
unsafe {
158158
let input_port =
159159
construct(|res| ffi::AMidiInputPort_open(self.ptr.as_ptr(), port_number, res))?;
@@ -164,7 +164,7 @@ impl MidiDevice {
164164
/// Opens the output port so that the client can receive data from it. Note that the returned
165165
/// [`MidiOutputPort`] is intentionally `!Send` and `!Sync`; please use
166166
/// [`safe::SafeMidiDevice::open_safe_output_port`] if you need the thread-safe version.
167-
pub fn open_output_port(&self, port_number: i32) -> Result<MidiOutputPort> {
167+
pub fn open_output_port(&self, port_number: i32) -> Result<MidiOutputPort<'_>> {
168168
unsafe {
169169
let output_port =
170170
construct(|res| ffi::AMidiOutputPort_open(self.ptr.as_ptr(), port_number, res))?;

0 commit comments

Comments
 (0)