Closed magicant closed 1 month ago
The recent changes to the yash-env
project enhance the structure and encapsulation of the system
module. Notably, the visibility of certain error handling methods has been restricted, and error constants have been organized based on platform specificity. This refinement improves maintainability and clarifies the error management approach, while also avoiding dependencies on external crates, aligning with the goal of independent API control.
File | Change Summary |
---|---|
yash-env/src/system/errno.rs |
Removed last() and set_last() methods; updated NO_ERROR documentation; separated error constants for Unix and non-Unix systems. |
yash-env/src/system/errno.md |
Introduced documentation for error constants across Unix and non-Unix systems; no public entity changes. |
yash-env/src/system/real.rs |
Added a new errno module without altering existing functionality. |
yash-env/src/system/real/errno.rs |
Introduced methods to retrieve and clear errno values for enhanced error handling. |
yash-env/CHANGELOG.md |
Summarized changes regarding method visibility and error handling enhancements. |
nix
crate.π In the garden where errors bloom,
A rabbit hops to clear the gloom.
With methods new and constants bright,
Error handling feels just right!
Let's leap with joy, for changes are here,
A cleaner path, letβs give a cheer! π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The
yash_env::system::Errno
type should compile on all platforms. This pull request:last
andclear
methods, which actually depends on the real underlying system API.Summary by CodeRabbit
New Features
Bug Fixes
Documentation