Remove unnecessary Box

This commit is contained in:
kngwyu 2020-01-07 17:37:29 +09:00
parent f26e07cfd6
commit 67a98d6c4a
1 changed files with 2 additions and 2 deletions

View File

@ -56,14 +56,14 @@ impl<T: PyTypeInfo> PyObjectInit<T> for PyNativeTypeInitializer<T> {
/// ```
pub struct PyClassInitializer<T: PyClass> {
init: T,
super_init: Box<<T::BaseType as PyTypeInfo>::Initializer>,
super_init: <T::BaseType as PyTypeInfo>::Initializer,
}
impl<T: PyClass> PyClassInitializer<T> {
pub fn new(init: T, super_init: <T::BaseType as PyTypeInfo>::Initializer) -> Self {
Self {
init,
super_init: Box::new(super_init),
super_init: super_init,
}
}