66
66
}
67
67
}
68
68
69
- #[ inline( never) ]
70
69
fn into_py_from < T , U > ( py : Python , obj : T ) -> Py < U >
71
70
where
72
71
T : IntoGil < U > ,
75
74
Py :: new ( py, obj. into_gil ( py) ) . unwrap ( )
76
75
}
77
76
78
- #[ inline( never) ]
79
77
fn from_py_into < T , U > ( py : Python , obj : & Py < T > ) -> U
80
78
where
81
79
T : PyClass ,
84
82
( & * obj. borrow ( py) ) . into_gil ( py)
85
83
}
86
84
87
- #[ inline( never) ]
88
85
fn from_pyany_into < T , U > ( py : Python , obj : Bound < PyAny > ) -> U
89
86
where
90
87
T : PyClass ,
@@ -105,19 +102,16 @@ impl<T: Default + PyClass + Into<PyClassInitializer<T>>> PyDefault for T {
105
102
}
106
103
107
104
#[ must_use]
108
- #[ inline( never) ]
109
105
pub fn pyfloat_default ( py : Python ) -> Py < PyFloat > {
110
106
PyFloat :: new ( py, 0.0 ) . unbind ( )
111
107
}
112
108
113
109
#[ must_use]
114
- #[ inline( never) ]
115
110
pub fn float_to_py ( py : Python , num : f32 ) -> Py < PyFloat > {
116
111
PyFloat :: new ( py, num as f64 ) . unbind ( )
117
112
}
118
113
119
114
#[ must_use]
120
- #[ inline( never) ]
121
115
pub fn float_from_py ( py : Python , num : & Py < PyFloat > ) -> f32 {
122
116
num. bind ( py) . value ( ) as f32
123
117
}
@@ -134,7 +128,7 @@ pub const fn bool_to_str(b: bool) -> &'static str {
134
128
if b { "True" } else { "False" }
135
129
}
136
130
137
- #[ inline ( never ) ]
131
+ #[ must_use ]
138
132
pub fn pydefault_string ( py : Python ) -> Py < PyString > {
139
133
PyString :: intern ( py, "" ) . unbind ( )
140
134
}
@@ -143,7 +137,6 @@ pub trait UnpackFrom<T> {
143
137
fn unpack_from ( & mut self , py : Python , flat_t : T ) ;
144
138
}
145
139
146
- #[ inline( never) ]
147
140
pub fn update_list < T , U > ( py : Python , items : Borrowed < PyList > , flat_t : Vec < T > )
148
141
where
149
142
T : IntoGil < U > ,
0 commit comments