aboutsummaryrefslogtreecommitdiff
path: root/src/generation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/generation.rs')
-rw-r--r--src/generation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generation.rs b/src/generation.rs
index 4031c46..63aa3e3 100644
--- a/src/generation.rs
+++ b/src/generation.rs
@@ -17,7 +17,7 @@ use std::{
error::Error,
fs::File,
io::{self, BufRead, BufReader, Write},
- path::Path,
+ path::PathBuf,
thread::sleep,
time::Duration,
};
@@ -159,7 +159,7 @@ pub fn next_gen(app: &mut App) -> Gen {
nxt_gen
}
-pub fn gen_from_file(path: &Path) -> Gen {
+pub fn gen_from_file(path: &PathBuf) -> Gen {
let mut gen = Gen::new();
let file = File::open(path).expect("File not found");
let reader = BufReader::new(file);