We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 771afde commit b7d6af0Copy full SHA for b7d6af0
src/ioctls/device.rs
@@ -164,7 +164,9 @@ impl AsRawFd for DeviceFd {
164
}
165
166
impl FromRawFd for DeviceFd {
167
- /// This function is also unsafe as the primitives currently returned have the contract that
+ /// # Safety
168
+ ///
169
+ /// This function is unsafe as the primitives currently returned have the contract that
170
/// they are the sole owner of the file descriptor they are wrapping. Usage of this function
171
/// could accidentally allow violating this contract which can cause memory unsafety in code
172
/// that relies on it being true.
0 commit comments