6666 }
6767}
6868
69- #[ inline( never) ]
7069fn into_py_from < T , U > ( py : Python , obj : T ) -> Py < U >
7170where
7271 T : IntoGil < U > ,
7574 Py :: new ( py, obj. into_gil ( py) ) . unwrap ( )
7675}
7776
78- #[ inline( never) ]
7977fn from_py_into < T , U > ( py : Python , obj : & Py < T > ) -> U
8078where
8179 T : PyClass ,
8482 ( & * obj. borrow ( py) ) . into_gil ( py)
8583}
8684
87- #[ inline( never) ]
8885fn from_pyany_into < T , U > ( py : Python , obj : Bound < PyAny > ) -> U
8986where
9087 T : PyClass ,
@@ -105,19 +102,16 @@ impl<T: Default + PyClass + Into<PyClassInitializer<T>>> PyDefault for T {
105102}
106103
107104#[ must_use]
108- #[ inline( never) ]
109105pub fn pyfloat_default ( py : Python ) -> Py < PyFloat > {
110106 PyFloat :: new ( py, 0.0 ) . unbind ( )
111107}
112108
113109#[ must_use]
114- #[ inline( never) ]
115110pub fn float_to_py ( py : Python , num : f32 ) -> Py < PyFloat > {
116111 PyFloat :: new ( py, num as f64 ) . unbind ( )
117112}
118113
119114#[ must_use]
120- #[ inline( never) ]
121115pub fn float_from_py ( py : Python , num : & Py < PyFloat > ) -> f32 {
122116 num. bind ( py) . value ( ) as f32
123117}
@@ -134,7 +128,7 @@ pub const fn bool_to_str(b: bool) -> &'static str {
134128 if b { "True" } else { "False" }
135129}
136130
137- #[ inline ( never ) ]
131+ #[ must_use ]
138132pub fn pydefault_string ( py : Python ) -> Py < PyString > {
139133 PyString :: intern ( py, "" ) . unbind ( )
140134}
@@ -143,7 +137,6 @@ pub trait UnpackFrom<T> {
143137 fn unpack_from ( & mut self , py : Python , flat_t : T ) ;
144138}
145139
146- #[ inline( never) ]
147140pub fn update_list < T , U > ( py : Python , items : Borrowed < PyList > , flat_t : Vec < T > )
148141where
149142 T : IntoGil < U > ,
0 commit comments