general: apply clippy lints (#407)* general: update crates to 2021 edition. * general: apply clippy --fix * general: apply manual clippy lints * cargo fmt.
Replace `Box::new(T::default())` with `Box::<T>::default()`
Move all to top level