aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authornotgne22021-01-08 18:28:45 -0700
committernotgne22021-01-08 18:28:45 -0700
commit1789551855a8290caad59d3849bab16c56158c70 (patch)
tree2dbd325d2aa78664f42071a8a1b3278418068ff6 /src/lib.rs
parent70c55363a91572790ba5d49b70c58040f112e55c (diff)
Fix trivial lint issues
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 21bfb8c..6a6873f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,7 +19,7 @@ extern crate serde_derive;
pub fn make_lock_path(temp_path: &str, closure: &str) -> String {
let lock_hash =
- &closure["/nix/store/".len()..closure.find("-").unwrap_or_else(|| closure.len())];
+ &closure["/nix/store/".len()..closure.find('-').unwrap_or_else(|| closure.len())];
format!("{}/deploy-rs-canary-{}", temp_path, lock_hash)
}