Skip to content

Commit d2ca020

Browse files
committed
Remove some #[inline(never)]s
1 parent 1e6943f commit d2ca020

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ where
6666
}
6767
}
6868

69-
#[inline(never)]
7069
fn into_py_from<T, U>(py: Python, obj: T) -> Py<U>
7170
where
7271
T: IntoGil<U>,
@@ -75,7 +74,6 @@ where
7574
Py::new(py, obj.into_gil(py)).unwrap()
7675
}
7776

78-
#[inline(never)]
7977
fn from_py_into<T, U>(py: Python, obj: &Py<T>) -> U
8078
where
8179
T: PyClass,
@@ -84,7 +82,6 @@ where
8482
(&*obj.borrow(py)).into_gil(py)
8583
}
8684

87-
#[inline(never)]
8885
fn from_pyany_into<T, U>(py: Python, obj: Bound<PyAny>) -> U
8986
where
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)]
109105
pub fn pyfloat_default(py: Python) -> Py<PyFloat> {
110106
PyFloat::new(py, 0.0).unbind()
111107
}
112108

113109
#[must_use]
114-
#[inline(never)]
115110
pub 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)]
121115
pub 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]
138132
pub 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)]
147140
pub fn update_list<T, U>(py: Python, items: Borrowed<PyList>, flat_t: Vec<T>)
148141
where
149142
T: IntoGil<U>,

0 commit comments

Comments
 (0)