summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-11-01 20:59:03 +0100
committerGitHub <noreply@github.com>2016-11-01 20:59:03 +0100
commit8bacdb49b9d2826bcf6ab5773ba09c46913ba5a9 (patch)
treea161b46677794f4398ab916209d93735379b29d9
parenta4db420fdb43186258a7dc08ffb597a82d11f32a (diff)
parent35d93ecdd5f8d7b2fd04d7e257710d37432079c9 (diff)
downloadimag-8bacdb49b9d2826bcf6ab5773ba09c46913ba5a9.zip
imag-8bacdb49b9d2826bcf6ab5773ba09c46913ba5a9.tar.gz
Merge pull request #831 from matthiasbeyer/libimagref/remove-unused
Remove unused variable
-rw-r--r--libimagref/src/reference.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagref/src/reference.rs b/libimagref/src/reference.rs
index 7d73225..0b39285 100644
--- a/libimagref/src/reference.rs
+++ b/libimagref/src/reference.rs
@@ -157,14 +157,14 @@ impl<'a> Ref<'a> {
.map_err(|e| REK::PathHashingError.into_error_with_cause(e))
);
- Ok((file, opt_contenthash, opt_permissions, can, path_hash))
+ Ok((opt_contenthash, opt_permissions, can, path_hash))
})
// and then we convert the PathBuf of the canonicalized path to a String to be able
// to save it in the Ref FileLockEntry obj
// and return
// (file, content hash, permissions, canonicalized path as String, path hash)
- .and_then(|(file, opt_conhash, opt_perm, can, path_hash)| {
+ .and_then(|(opt_conhash, opt_perm, can, path_hash)| {
match can.to_str().map(String::from) {
// UTF convert error in PathBuf::to_str(),
None => Err(REK::PathUTF8Error.into_error()),