mirror of
https://github.com/dnlbauer/xdrfile.git
synced 2026-09-11 06:35:30 +00:00
reverted to single ReadNAtom error type
This commit is contained in:
@@ -50,7 +50,7 @@ impl<T: Trajectory> TrajectoryIterator<T> {
|
||||
// It's OK to do this every frame because the result is cached by Trajectory
|
||||
let num_atoms = match &self.trajectory.get_num_atoms() {
|
||||
&Ok(n) => n,
|
||||
Err(e) => Err(Error::CheckNAtomsDuringIter(Box::new(e.clone())))?,
|
||||
Err(e) => Err(Error::CouldNotCheckNAtoms(Box::new(e.clone())))?,
|
||||
};
|
||||
|
||||
// Reuse old frame
|
||||
|
||||
Reference in New Issue
Block a user