fixes for latest rust nightly

This fixes issue #6, I'm not entirely sure this is the best way to fix it but as far as I can tell it works. I fixed it by passing borrowed references to the member, instead of moving out of it.