Skip to content

Conversation

@svenstaro
Copy link
Contributor

@svenstaro svenstaro commented May 20, 2025

Previously, the docs wouldn't actually pass because of warnings in cargo doc and also the docs were in parts incorrect. I also tried fix grammar and add examples where appropriate.

@svenstaro
Copy link
Contributor Author

I see now there were also some styling changes automatically made by cargo fmt. I can remove those if you don't like them but it's probably a good idea to make all the code look the same when auto-formatted.

Copy link
Owner

@xadaemon xadaemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's the one thing I commented, otherwise very good, thanks

src/daemon.rs Outdated
Comment on lines 158 to 159
/// Can be used to continue some work on the parent after the fork.
/// **NOTE:** This hook must call `std::process::exit()`.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't need to call exit(), it can call anything really, the main point is it's not expected to return ever thus the return type being !, so as long as it never returns the compiler will be happy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, how's this?

@xadaemon xadaemon merged commit 0fbf6a3 into xadaemon:trunk May 21, 2025
1 check passed
@svenstaro svenstaro deleted the fix-docs branch May 21, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants