aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ee5f9c4..e26b3ab 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -802,11 +802,9 @@ pub struct Prog {
#[cfg(test)]
mod tests {
- use std::path::Path;
-
use crate::error::ErrorKind;
- use super::{run_file, run_string};
+ use super::run_string;
#[macro_export]
macro_rules! assert_errs {
@@ -912,8 +910,8 @@ mod tests {
($fn:ident, $path:literal) => {
#[test]
fn $fn() {
- let file = Path::new($path);
- run_file(&file, true, Vec::new()).unwrap();
+ let file = std::path::Path::new($path);
+ crate::run_file(&file, true, Vec::new()).unwrap();
}
};
}