Skip to content

Commit 4bdba7b

Browse files
Auto-format: cargo fmt --all
1 parent 97b991b commit 4bdba7b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

crates/vm/src/stdlib/ctypes/field.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ use crate::{Py, PyResult, VirtualMachine};
88
#[pyclass(name = "PyCFieldType", base = PyType, module = "_ctypes")]
99
#[derive(PyPayload, Debug)]
1010
pub struct PyCFieldType {
11-
#[allow(dead_code)] pub(super) inner: PyCField,
11+
#[allow(dead_code)]
12+
pub(super) inner: PyCField,
1213
}
1314

1415
#[pyclass]

crates/vm/src/stdlib/ctypes/function.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ impl ReturnType for PyNone {
101101
pub struct PyCFuncPtr {
102102
pub name: PyRwLock<Option<String>>,
103103
pub ptr: PyRwLock<Option<CodePtr>>,
104-
#[allow(dead_code)] pub needs_free: AtomicCell<bool>,
104+
#[allow(dead_code)]
105+
pub needs_free: AtomicCell<bool>,
105106
pub arg_types: PyRwLock<Option<Vec<PyTypeRef>>>,
106107
pub res_type: PyRwLock<Option<PyObjectRef>>,
107108
pub _flags_: AtomicCell<i32>,
108-
#[allow(dead_code)] pub handler: PyObjectRef,
109+
#[allow(dead_code)]
110+
pub handler: PyObjectRef,
109111
}
110112

111113
impl Debug for PyCFuncPtr {

crates/vm/src/stdlib/ctypes/pointer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ use crate::{PyObjectRef, PyResult};
77
#[pyclass(name = "PyCPointerType", base = PyType, module = "_ctypes")]
88
#[derive(PyPayload, Debug)]
99
pub struct PyCPointerType {
10-
#[allow(dead_code)] pub(crate) inner: PyCPointer,
10+
#[allow(dead_code)]
11+
pub(crate) inner: PyCPointer,
1112
}
1213

1314
#[pyclass]

0 commit comments

Comments
 (0)