cargo fmt
This commit is contained in:
parent
d618ca401a
commit
13d4d66fdb
|
@ -51,8 +51,7 @@ pub fn mod3init(
|
|||
input: proc_macro::TokenStream,
|
||||
) -> proc_macro::TokenStream {
|
||||
// Parse the token stream into a syntax tree
|
||||
let mut ast: syn::ItemFn =
|
||||
syn::parse(input).expect("#[pymodule] must be used on a `fn` block");
|
||||
let mut ast: syn::ItemFn = syn::parse(input).expect("#[pymodule] must be used on a `fn` block");
|
||||
|
||||
let modname: syn::Ident;
|
||||
if attr.is_empty() {
|
||||
|
|
|
@ -14,8 +14,8 @@ use crate::types::{PyDict, PyModule, PyObjectRef, PyType};
|
|||
use std;
|
||||
use std::ffi::CString;
|
||||
use std::marker::PhantomData;
|
||||
use std::ptr::NonNull;
|
||||
use std::os::raw::c_int;
|
||||
use std::ptr::NonNull;
|
||||
|
||||
/// Marker type that indicates that the GIL is currently held.
|
||||
///
|
||||
|
|
|
@ -280,7 +280,7 @@ impl GILGuard {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::{GILPool, ReleasePool, POOL, NonNull};
|
||||
use super::{GILPool, NonNull, ReleasePool, POOL};
|
||||
use crate::conversion::ToPyObject;
|
||||
use crate::object::PyObject;
|
||||
use crate::python::{Python, ToPyPointer};
|
||||
|
|
Loading…
Reference in a new issue