Skip to content

Commit f15fa21

Browse files
committed
Remove unnecessary trailing semicolon
1 parent f7ac0a2 commit f15fa21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types/tuple.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ macro_rules! tuple_conversion ({$length:expr,$(($refN:ident, $n:tt, $T:ident)),+
154154
fn to_object(&self, py: Python) -> PyObject {
155155
unsafe {
156156
let ptr = ffi::PyTuple_New($length);
157-
$(ffi::PyTuple_SetItem(ptr, $n, self.$n.to_object(py).into_ptr());)+;
157+
$(ffi::PyTuple_SetItem(ptr, $n, self.$n.to_object(py).into_ptr());)+
158158
PyObject::from_owned_ptr_or_panic(py, ptr)
159159
}
160160
}
@@ -163,7 +163,7 @@ macro_rules! tuple_conversion ({$length:expr,$(($refN:ident, $n:tt, $T:ident)),+
163163
fn into_object(self, py: Python) -> PyObject {
164164
unsafe {
165165
let ptr = ffi::PyTuple_New($length);
166-
$(ffi::PyTuple_SetItem(ptr, $n, self.$n.into_object(py).into_ptr());)+;
166+
$(ffi::PyTuple_SetItem(ptr, $n, self.$n.into_object(py).into_ptr());)+
167167
PyObject::from_owned_ptr_or_panic(py, ptr)
168168
}
169169
}
@@ -173,7 +173,7 @@ macro_rules! tuple_conversion ({$length:expr,$(($refN:ident, $n:tt, $T:ident)),+
173173
fn into_py(self, py: Python) -> Py<PyTuple> {
174174
unsafe {
175175
let ptr = ffi::PyTuple_New($length);
176-
$(ffi::PyTuple_SetItem(ptr, $n, self.$n.into_object(py).into_ptr());)+;
176+
$(ffi::PyTuple_SetItem(ptr, $n, self.$n.into_object(py).into_ptr());)+
177177
Py::from_owned_ptr_or_panic(ptr)
178178
}
179179
}

0 commit comments

Comments
 (0)