update to rust breaking change

https://github.com/rust-lang/rust/pull/19298