Fix for std::from_str::FromStr refactoring

In Rust commit [29bc9c632](https://github.com/rust-lang/rust/commit/29bc9c632), `std::from_str::FromStr` was moved to `std::str::FromStr`.