Better HN
topnewbestaskshowjobs
Log inSign up

Michael-F-Bryan

1 karma · joined May 18, 2017 (9y ago) · 4 submissions

Submissions

1.

GitHub Actions can't access private repos?(adventures.michaelfbryan.com ↗)

1 points · by Michael-F-Bryan · 4y ago · discuss

2.

Cargo WAPM(adventures.michaelfbryan.com ↗)

1 points · by Michael-F-Bryan · 4y ago · discuss

comment 9y ago · link · parent

I'd recommend against using `std::mem::forget`. Even though it does pretty much the same thing you should probably use `some_cstring.into_raw()` instead. Semantically it's indicating that you are passing ownership of the string to the caller, while `forget()` just indicates that you want to leak the thing.