File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " projectm"
3- version = " 2.0.0 -alpha"
3+ version = " 2.0.1 -alpha"
44edition = " 2021"
55rust-version = " 1.65"
66authors = [
" AnomieVision <[email protected] >" ]
@@ -18,4 +18,4 @@ rand = "0.8.5"
1818
1919[features ]
2020default = [" playlist" ]
21- playlist = []
21+ playlist = []
Original file line number Diff line number Diff line change @@ -801,3 +801,12 @@ impl ProjectM {
801801
802802unsafe impl Send for ProjectM { }
803803unsafe impl Sync for ProjectM { }
804+
805+ // allow cloning the handle
806+ impl Clone for ProjectM {
807+ fn clone ( & self ) -> Self {
808+ ProjectM {
809+ instance : self . instance . clone ( ) ,
810+ }
811+ }
812+ }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub struct Playlist {
1313
1414impl Playlist {
1515 /// Create a new playlist for [Projectm](ProjectMHandle)
16- pub fn create ( projectm : ProjectM ) -> Playlist {
16+ pub fn create ( projectm : & ProjectM ) -> Playlist {
1717 let projectm = projectm. get_instance ( ) ;
1818 let instance = projectm. borrow_mut ( ) ;
1919
You can’t perform that action at this time.
0 commit comments