Fix formatting.
This commit is contained in:
parent
3bf9ef0706
commit
a44e2f8eea
|
@ -632,8 +632,6 @@ impl<'a> PyClassImplsBuilder<'a> {
|
|||
quote! { ::pyo3::PyAny }
|
||||
};
|
||||
|
||||
|
||||
|
||||
quote! {
|
||||
impl ::pyo3::PyClass for #cls {
|
||||
type Dict = #dict;
|
||||
|
@ -651,7 +649,7 @@ impl<'a> PyClassImplsBuilder<'a> {
|
|||
type Target = ::pyo3::PyRef<'a, #cls>;
|
||||
}
|
||||
}
|
||||
} else{
|
||||
} else {
|
||||
quote! {
|
||||
impl<'a> ::pyo3::derive_utils::ExtractExt<'a> for &'a #cls
|
||||
{
|
||||
|
@ -830,7 +828,7 @@ impl<'a> PyClassImplsBuilder<'a> {
|
|||
if self.attr.is_immutable {
|
||||
quote! {
|
||||
unsafe impl ::pyo3::pyclass::ImmutablePyClass for #cls {}
|
||||
|
||||
|
||||
unsafe impl ::pyo3::class::impl_::BorrowImpl for #cls {
|
||||
fn get_borrow_flag() -> for<'r> fn(&'r ::pyo3::pycell::PyCell<Self>) -> ::pyo3::pycell::BorrowFlag
|
||||
where Self: ::pyo3::PyClass
|
||||
|
@ -852,7 +850,7 @@ impl<'a> PyClassImplsBuilder<'a> {
|
|||
} else {
|
||||
quote! {
|
||||
unsafe impl ::pyo3::pyclass::MutablePyClass for #cls {}
|
||||
|
||||
|
||||
unsafe impl ::pyo3::class::impl_::BorrowImpl for #cls {}
|
||||
}
|
||||
}
|
||||
|
@ -912,4 +910,4 @@ impl<'a> PyClassImplsBuilder<'a> {
|
|||
quote! {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,8 @@ note: required because it appears within the type `NotThreadSafe`
|
|||
5 | struct NotThreadSafe {
|
||||
| ^^^^^^^^^^^^^
|
||||
note: required by a bound in `ThreadCheckerStub`
|
||||
--> src/class/impl_.rs:731:33
|
||||
--> src/class/impl_.rs:728:33
|
||||
|
|
||||
731 | pub struct ThreadCheckerStub<T: Send>(PhantomData<T>);
|
||||
|
||||
728 | pub struct ThreadCheckerStub<T: Send>(PhantomData<T>);
|
||||
| ^^^^ required by this bound in `ThreadCheckerStub`
|
||||
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
Loading…
Reference in New Issue