From c484fb8065b59611506c51facb20889934e5d37f Mon Sep 17 00:00:00 2001 From: Roy Ivy III Date: Fri, 7 Feb 2020 04:05:13 -0600 Subject: [PATCH] refactor/polish ~ fix `cargo clippy` complaints (missing_safety_doc; with ToDO for safety note) --- src/stdbuf/libstdbuf/libstdbuf.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdbuf/libstdbuf/libstdbuf.rs b/src/stdbuf/libstdbuf/libstdbuf.rs index 5b2f41244..3b8423114 100644 --- a/src/stdbuf/libstdbuf/libstdbuf.rs +++ b/src/stdbuf/libstdbuf/libstdbuf.rs @@ -55,6 +55,8 @@ fn set_buffer(stream: *mut FILE, value: &str) { } } +/// # Safety +/// ToDO ... (safety note) #[no_mangle] pub unsafe extern "C" fn __stdbuf() { if let Ok(val) = env::var("_STDBUF_E") {