Remove unused variable
This commit is contained in:
parent
47ca51b895
commit
0a069a401b
1 changed files with 2 additions and 2 deletions
|
@ -169,13 +169,13 @@ impl<'a> Ref<'a> {
|
||||||
match can.to_str().map(String::from) {
|
match can.to_str().map(String::from) {
|
||||||
// UTF convert error in PathBuf::to_str(),
|
// UTF convert error in PathBuf::to_str(),
|
||||||
None => Err(REK::PathUTF8Error.into_error()),
|
None => Err(REK::PathUTF8Error.into_error()),
|
||||||
Some(can) => Ok((file, opt_conhash, opt_perm, can, path_hash))
|
Some(can) => Ok((opt_conhash, opt_perm, can, path_hash))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// and then we create the FileLockEntry in the Store
|
// and then we create the FileLockEntry in the Store
|
||||||
// and return (filelockentry, content hash, permissions, canonicalized path)
|
// and return (filelockentry, content hash, permissions, canonicalized path)
|
||||||
.and_then(|(file, opt_conhash, opt_perm, can, path_hash)| {
|
.and_then(|(opt_conhash, opt_perm, can, path_hash)| {
|
||||||
let fle = try!(store
|
let fle = try!(store
|
||||||
.create(ModuleEntryPath::new(path_hash))
|
.create(ModuleEntryPath::new(path_hash))
|
||||||
.map_err(Box::new)
|
.map_err(Box::new)
|
||||||
|
|
Loading…
Reference in a new issue