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 1
1
[package ]
2
2
name = " projectm"
3
- version = " 2.0.0 -alpha"
3
+ version = " 2.0.1 -alpha"
4
4
edition = " 2021"
5
5
rust-version = " 1.65"
6
6
authors = [
" AnomieVision <[email protected] >" ]
@@ -18,4 +18,4 @@ rand = "0.8.5"
18
18
19
19
[features ]
20
20
default = [" playlist" ]
21
- playlist = []
21
+ playlist = []
Original file line number Diff line number Diff line change @@ -801,3 +801,12 @@ impl ProjectM {
801
801
802
802
unsafe impl Send for ProjectM { }
803
803
unsafe 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 {
13
13
14
14
impl Playlist {
15
15
/// Create a new playlist for [Projectm](ProjectMHandle)
16
- pub fn create ( projectm : ProjectM ) -> Playlist {
16
+ pub fn create ( projectm : & ProjectM ) -> Playlist {
17
17
let projectm = projectm. get_instance ( ) ;
18
18
let instance = projectm. borrow_mut ( ) ;
19
19
You can’t perform that action at this time.
0 commit comments