cargo fmt

This commit is contained in:
konstin 2018-11-15 21:58:22 +01:00
parent d618ca401a
commit 13d4d66fdb
3 changed files with 3 additions and 4 deletions

View file

@ -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() {

View file

@ -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.
///

View file

@ -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};