Replace usage of `get_ref`

Was deprecated at some point & removed now in latest rust.