I am creating a program in which main returns Result<(), _>, and I was wondering: what's the best - or rather, most semantic - way to return Ok(())? Should it be as in:
For clarification: I believe the second is best because it requires less refactoring in the event more code is added to the function.
On the other hand, the first example may be preferable if foo is local, since if the return type changes it becomes a compile error. That could catch some annoying API problems in some situations.