6 ms·
You can always specify the type. let foo: T = bar.parse()?; // or let foo = bar.parse::<u32>()?; baz(foo); In my experience I've never found this to be surp
by banana_maker 5y ago
You can always specify the type.
let foo: T = bar.parse()?;
// or let foo = bar.parse::<u32>()?;
baz(foo);
In my experience I've never found this to be surprising behavior, or unclear.