aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-10-29 13:58:01 -0700
committerBryan Newbold <bnewbold@robocracy.org>2017-10-29 13:58:03 -0700
commitad63a8f64fa434c25ecd9e5d3437f6885f586706 (patch)
tree25804951413ca5eb205a6c6ac694d594b22584ee
parent7ee8ff8ede55fbbb68f907b6f0577aefdda24ef9 (diff)
downloadgeniza-ad63a8f64fa434c25ecd9e5d3437f6885f586706.tar.gz
geniza-ad63a8f64fa434c25ecd9e5d3437f6885f586706.zip
fix typo bug with sleep register
Embarassing that tests didn't catch this! Need to enable coverage...
-rw-r--r--src/sleep_register.rs3
1 files changed, 1 insertions, 2 deletions
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)