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.
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.
No comments yet.