No longer need explicit refs in rustc 1.26

This commit is contained in:
Greg Fitzgerald
2018-06-04 17:17:23 -06:00
parent 69b3c75f0d
commit 7e788d3a17
7 changed files with 20 additions and 24 deletions

View File

@@ -505,7 +505,7 @@ impl Crdt {
blob_recycler: &BlobRecycler,
) -> Option<SharedBlob> {
let pos = (ix as usize) % window.read().unwrap().len();
if let &Some(ref blob) = &window.read().unwrap()[pos] {
if let Some(blob) = &window.read().unwrap()[pos] {
let rblob = blob.read().unwrap();
let blob_ix = rblob.get_index().expect("run_window_request get_index");
if blob_ix == ix {