fixed build error caused by new rust nightly

... appeasing the borrow checker, I wish I fully understood how O.o