You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Sentry project has an example code that demonstrates how to use it in main().
Presence of main() in that example is not an accident. It demonstrates how typically a server app is structured, and this helps the reader to understand where to put the code.
Although technically fn main() could be removed from this code, it'd make definition of fn failing look weird.
I suggest not warning about needless_doctest_main if there is a definition of another non-main function.
The Sentry project has an example code that demonstrates how to use it in
main()
.Presence of
main()
in that example is not an accident. It demonstrates how typically a server app is structured, and this helps the reader to understand where to put the code.Although technically
fn main()
could be removed from this code, it'd make definition offn failing
look weird.I suggest not warning about
needless_doctest_main
if there is a definition of another non-main
function.The text was updated successfully, but these errors were encountered: