From ad63a8f64fa434c25ecd9e5d3437f6885f586706 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 29 Oct 2017 13:58:01 -0700 Subject: fix typo bug with sleep register Embarassing that tests didn't catch this! Need to enable coverage... --- src/sleep_register.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/sleep_register.rs b/src/sleep_register.rs index b103b4c..8d9d99e 100644 --- a/src/sleep_register.rs +++ b/src/sleep_register.rs @@ -274,8 +274,7 @@ impl SleepDirRegister { true, )?); } - let data_path = &(prefix.to_owned() + ".data"); - let data_path = Path::new(data_path); + let data_path = &directory.join(Path::new(&(prefix.to_owned() + ".data"))); let data_file = if data_path.is_file() { Some(OpenOptions::new() .read(true) -- cgit v1.2.3