File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -10,24 +10,12 @@ use std::collections::HashMap;
1010
1111#[ gen_stub_pyclass]
1212pub struct PyValue ( pub slint_interpreter:: Value ) ;
13- struct PyValueRef < ' a > ( & ' a slint_interpreter:: Value ) ;
1413
1514impl < ' py > IntoPyObject < ' py > for PyValue {
1615 type Target = PyAny ;
1716 type Output = Bound < ' py , Self :: Target > ;
1817 type Error = PyErr ;
1918
20- fn into_pyobject ( self , py : Python < ' py > ) -> Result < Self :: Output , Self :: Error > {
21- // Share the conversion code below that operates on the reference
22- PyValueRef ( & self . 0 ) . into_pyobject ( py)
23- }
24- }
25-
26- impl < ' a , ' py > IntoPyObject < ' py > for PyValueRef < ' a > {
27- type Target = PyAny ;
28- type Output = Bound < ' py , Self :: Target > ;
29- type Error = PyErr ;
30-
3119 fn into_pyobject ( self , py : Python < ' py > ) -> Result < Self :: Output , Self :: Error > {
3220 match & self . 0 {
3321 slint_interpreter:: Value :: Void => ( ) . into_bound_py_any ( py) ,
You can’t perform that action at this time.
0 commit comments