File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ impl MidiDevice {
153
153
/// Opens the input port so that the client can send data to it. Note that the returned
154
154
/// [`MidiInputPort`] is intentionally `!Send` and `!Sync`; please use
155
155
/// [`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 < ' _ > > {
157
157
unsafe {
158
158
let input_port =
159
159
construct ( |res| ffi:: AMidiInputPort_open ( self . ptr . as_ptr ( ) , port_number, res) ) ?;
@@ -164,7 +164,7 @@ impl MidiDevice {
164
164
/// Opens the output port so that the client can receive data from it. Note that the returned
165
165
/// [`MidiOutputPort`] is intentionally `!Send` and `!Sync`; please use
166
166
/// [`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 < ' _ > > {
168
168
unsafe {
169
169
let output_port =
170
170
construct ( |res| ffi:: AMidiOutputPort_open ( self . ptr . as_ptr ( ) , port_number, res) ) ?;
You can’t perform that action at this time.
0 commit comments