Remove unnecessary Box
This commit is contained in:
parent
f26e07cfd6
commit
67a98d6c4a
|
@ -56,14 +56,14 @@ impl<T: PyTypeInfo> PyObjectInit<T> for PyNativeTypeInitializer<T> {
|
||||||
/// ```
|
/// ```
|
||||||
pub struct PyClassInitializer<T: PyClass> {
|
pub struct PyClassInitializer<T: PyClass> {
|
||||||
init: T,
|
init: T,
|
||||||
super_init: Box<<T::BaseType as PyTypeInfo>::Initializer>,
|
super_init: <T::BaseType as PyTypeInfo>::Initializer,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: PyClass> PyClassInitializer<T> {
|
impl<T: PyClass> PyClassInitializer<T> {
|
||||||
pub fn new(init: T, super_init: <T::BaseType as PyTypeInfo>::Initializer) -> Self {
|
pub fn new(init: T, super_init: <T::BaseType as PyTypeInfo>::Initializer) -> Self {
|
||||||
Self {
|
Self {
|
||||||
init,
|
init,
|
||||||
super_init: Box::new(super_init),
|
super_init: super_init,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue