diff options
author | notgne2 | 2020-10-29 12:35:07 -0700 |
---|---|---|
committer | notgne2 | 2020-10-29 12:35:07 -0700 |
commit | d7f0006df0e3c14a9387f5bd3e3e3acd0b39fda8 (patch) | |
tree | c6c906edaa5b3f0a1046ec2976c9f10cfa1b4347 /src/activate.rs | |
parent | a606e123f890e03775cfd0d7dc908bb35dc95c96 (diff) |
Make lock hash clearer (at apparently no expense)
Diffstat (limited to '')
-rw-r--r-- | src/activate.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activate.rs b/src/activate.rs index 8c1cfe4..3ad7e60 100644 --- a/src/activate.rs +++ b/src/activate.rs @@ -152,7 +152,7 @@ pub async fn activation_confirmation( confirm_timeout: u16, closure: String, ) -> Result<(), Box<dyn std::error::Error>> { - let lock_hash = &closure[11 /* /nix/store/ */ ..]; + let lock_hash = &closure["/nix/store/".len()..]; let lock_path = format!("{}/activating-{}", temp_path, lock_hash); if let Some(parent) = Path::new(&lock_path).parent() { |