Fix for std::from_str::FromStr refactoring

In Rust commit 29bc9c632, std::from_str::FromStr was moved to std::str::FromStr.