diff --git a/src/windows.rs b/src/windows.rs index c1595e9..4994287 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -45,6 +45,7 @@ pub fn with_description(err: Errno, callback: F) -> T where let msg = String::from_utf16_lossy(&buf[..res as usize]); // Trim trailing CRLF inserted by FormatMessageW + #[allow(deprecated)] // TODO: remove when MSRV >= 1.30 callback(Ok(msg.trim_right())) } }