Removed trivial casts and changed frame.step to usize

This commit is contained in:
Josh Mitchell
2020-11-10 20:45:38 +11:00
committed by daniel
parent 734048d572
commit 3c36d3040e
6 changed files with 28 additions and 27 deletions

View File

@@ -2,7 +2,7 @@ use crate::*;
use std::rc::Rc;
fn into_iter_inner<T: Trajectory>(mut traj: T) -> TrajectoryIterator<T> {
let num_atoms = traj.get_num_atoms().map(|n| n as usize);
let num_atoms = traj.get_num_atoms();
let frame = match &num_atoms {
Ok(num_atoms) => Frame::with_len(*num_atoms),
Err(_) => Frame::new(),