Use Magic Conversion for FromStr types
masterIf a type implements the FromStr trait, you can pass string literals in #[case] or #[values] attributes, and rstest will automatically convert them to the target type.
// Example: Converting string literals to SocketAddr
#[rstest]
#[case("1.2.3.4:8080", 8080)]
#[case("127.0.0.1:9000", 9000)]
fn check_port(#[case] addr: SocketAddr, #[case] expected: u16) {
assert_eq!(expected, addr.port());
}