File tree 3 files changed +5
-18
lines changed
3 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -63,19 +63,6 @@ impl<T> From<Identified<T>> for ObjectId {
63
63
}
64
64
}
65
65
66
- #[ allow( unused_variables) ]
67
- impl < T > From < ( Identified < T > , Sendable < T > ) > for ObjectId {
68
- fn from ( ( id, _data) : ( Identified < T > , Sendable < T > ) ) -> Self {
69
- Self :: new (
70
- // TODO: the ID isn't used, so we hardcode it to 1 for now until we rework this
71
- // API.
72
- core:: num:: NonZeroU64 :: new ( 1 ) . unwrap ( ) ,
73
- #[ cfg( feature = "expose-ids" ) ]
74
- id. 0 ,
75
- )
76
- }
77
- }
78
-
79
66
#[ derive( Clone , Debug ) ]
80
67
pub ( crate ) struct Sendable < T > ( T ) ;
81
68
unsafe impl < T > Send for Sendable < T > { }
Original file line number Diff line number Diff line change @@ -1004,7 +1004,7 @@ pub struct ObjectId {
1004
1004
}
1005
1005
1006
1006
impl ObjectId {
1007
- const UNUSED : Self = ObjectId {
1007
+ pub ( crate ) const UNUSED : Self = ObjectId {
1008
1008
id : None ,
1009
1009
#[ cfg( feature = "expose-ids" ) ]
1010
1010
global_id : None ,
Original file line number Diff line number Diff line change @@ -1616,9 +1616,9 @@ impl Instance {
1616
1616
#[ cfg( any( not( target_arch = "wasm32" ) , feature = "webgl" ) ) ]
1617
1617
data : Box :: new ( surface) ,
1618
1618
#[ cfg( all( target_arch = "wasm32" , not( feature = "webgl" ) ) ) ]
1619
- id : ObjectId :: from ( surface ) ,
1619
+ id : ObjectId :: UNUSED ,
1620
1620
#[ cfg( all( target_arch = "wasm32" , not( feature = "webgl" ) ) ) ]
1621
- data : Box :: new ( ( ) ) ,
1621
+ data : Box :: new ( surface . 1 ) ,
1622
1622
config : Mutex :: new ( None ) ,
1623
1623
} )
1624
1624
}
@@ -1652,9 +1652,9 @@ impl Instance {
1652
1652
#[ cfg( any( not( target_arch = "wasm32" ) , feature = "webgl" ) ) ]
1653
1653
data : Box :: new ( surface) ,
1654
1654
#[ cfg( all( target_arch = "wasm32" , not( feature = "webgl" ) ) ) ]
1655
- id : ObjectId :: from ( surface ) ,
1655
+ id : ObjectId :: UNUSED ,
1656
1656
#[ cfg( all( target_arch = "wasm32" , not( feature = "webgl" ) ) ) ]
1657
- data : Box :: new ( ( ) ) ,
1657
+ data : Box :: new ( surface . 1 ) ,
1658
1658
config : Mutex :: new ( None ) ,
1659
1659
} )
1660
1660
}
You can’t perform that action at this time.
0 commit comments