mvdnes/spin-rs

Non-reserved-keyword identifier for spin::Once::try

tjhu opened this issue · 1 comments

tjhu commented

try is a reserved keyword so I have to do r#try if I want to use it in Rust Edition 2018(playground link). That doesn't look very pretty. Can we rename spin::Once::try into something else so that we don't have to explicitly escape the reserved keyword?
Thanks!

This has been resolved by #84 . try is now renamed to get and, additionally, has a get_mut equivalent.