From 4a99228d87ad133cdb4ce314f72cdfe70fe48eff Mon Sep 17 00:00:00 2001 From: Josh Mitchell Date: Sun, 8 Nov 2020 00:26:30 +1100 Subject: [PATCH] Changed an integration test to take path as &str --- tests/integration.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index cb69f12..d71f02d 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -7,9 +7,7 @@ mod integration { #[test] fn test_use_library() { - let path = Path::new("tests/1l2y.xtc"); - - let mut trj = XTCTrajectory::open(path, FileMode::Read).unwrap(); + let mut trj = XTCTrajectory::open("tests/1l2y.xtc", FileMode::Read).unwrap(); let num_atoms = trj.get_num_atoms().unwrap(); let mut frame = Frame::with_capacity(num_atoms);