mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 21:48:42 +00:00
Improve comment in create_jobserver_client
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
fb0a6a5514
commit
072253ebae
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ pub fn create_jobserver_client() -> Result<jobserver::Client, BinstallError> {
|
||||||
// Safety:
|
// Safety:
|
||||||
//
|
//
|
||||||
// Client::from_env is unsafe because from_raw_fd is unsafe.
|
// Client::from_env is unsafe because from_raw_fd is unsafe.
|
||||||
|
// It doesn't do anything that is actually unsafe, like
|
||||||
|
// dereferencing pointer.
|
||||||
if let Some(client) = unsafe { Client::from_env() } {
|
if let Some(client) = unsafe { Client::from_env() } {
|
||||||
Ok(client)
|
Ok(client)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue