diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-11-01 16:39:46 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-11-01 16:39:46 +0100 |
commit | 35d93ecdd5f8d7b2fd04d7e257710d37432079c9 (patch) | |
tree | a161b46677794f4398ab916209d93735379b29d9 /libimagref | |
parent | a4db420fdb43186258a7dc08ffb597a82d11f32a (diff) |
Remove unused variable
Diffstat (limited to 'libimagref')
-rw-r--r-- | libimagref/src/reference.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagref/src/reference.rs b/libimagref/src/reference.rs index 7d732256..0b39285a 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()), |