File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
crates/processing_pyo3/src Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -597,22 +597,18 @@ fn create_webcam(
597597}
598598
599599#[ pyfunction]
600- #[ pyo3( pass_module) ]
601- fn midi_connect ( module : & Bound < ' _ , PyModule > , port : usize ) -> PyResult < ( ) > {
600+ fn midi_connect ( port : usize ) -> PyResult < ( ) > {
602601 midi:: connect ( port)
603602}
604603#[ pyfunction]
605- #[ pyo3( pass_module) ]
606- fn midi_disconnect ( module : & Bound < ' _ , PyModule > ) -> PyResult < ( ) > {
604+ fn midi_disconnect ( ) -> PyResult < ( ) > {
607605 midi:: disconnect ( )
608606}
609607#[ pyfunction]
610- #[ pyo3( pass_module) ]
611- fn midi_refresh_ports ( module : & Bound < ' _ , PyModule > ) -> PyResult < ( ) > {
608+ fn midi_refresh_ports ( ) -> PyResult < ( ) > {
612609 midi:: refresh_ports ( )
613610}
614611#[ pyfunction]
615- #[ pyo3( pass_module) ]
616- fn midi_play_notes ( module : & Bound < ' _ , PyModule > , note : u8 , duration : u64 ) -> PyResult < ( ) > {
612+ fn midi_play_notes ( note : u8 , duration : u64 ) -> PyResult < ( ) > {
617613 midi:: play_notes ( note, duration)
618614}
You can’t perform that action at this time.
0 commit comments