Run `cargo fmt` on `pyo3-derive-backend` and `tests`

This commit is contained in:
Martin Larralde 2019-04-14 01:50:00 +02:00
parent 4e3d828181
commit 51be6a60fe
3 changed files with 8 additions and 3 deletions

View File

@ -4,8 +4,8 @@ use crate::defs;
use crate::func::impl_method_proto;
use crate::method::FnSpec;
use crate::pymethod;
use proc_macro2::TokenStream;
use proc_macro2::Span;
use proc_macro2::TokenStream;
use quote::quote;
use quote::ToTokens;

View File

@ -1,7 +1,7 @@
// Copyright (c) 2017-present PyO3 Project and Contributors
use proc_macro2::TokenStream;
use proc_macro2::Span;
use proc_macro2::TokenStream;
use syn;
pub fn print_err(msg: String, t: TokenStream) {

View File

@ -42,7 +42,12 @@ fn class_with_properties() {
py_run!(py, inst, "assert inst.get_num() == inst.DATA");
let d = [("C", py.get_type::<ClassWithProperties>())].into_py_dict(py);
py.run("assert C.DATA.__doc__ == 'a getter for data'", None, Some(d)).unwrap();
py.run(
"assert C.DATA.__doc__ == 'a getter for data'",
None,
Some(d),
)
.unwrap();
}
#[pyclass]