-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/format: use u32 and std::process::id not libc::getpid
Since 0.3.2, libc::getpid is used to get the process id and store the provided id in Formatters. This has the marked side effect of being unsafe and adding an unnecessary crate dependency. As such, this change moves to using std::process::id, which likely was not stable at the time, for better stdlib integration. Unfortunately, this is a breaking change, since the current i32s are part of the external interface, but could be implemented as compatible if the extant symbols were simply deprecated and new ones added.
- Loading branch information
Showing
2 changed files
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters