File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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) ) ?;
You can’t perform that action at this time.
0 commit comments