Skip to content

Commit dbd02cf

Browse files
authored
Replace deprecated trim_right with trim_end (#65)
1 parent c999f38 commit dbd02cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/windows.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ where
6666
let mut msg = [0u8; 2048];
6767
let msg = from_utf16_lossy(&buf[..res as usize], &mut msg[..]);
6868
// Trim trailing CRLF inserted by FormatMessageW
69-
#[allow(deprecated)] // TODO: remove when MSRV >= 1.30
70-
callback(Ok(msg.trim_right()))
69+
callback(Ok(msg.trim_end()))
7170
}
7271
}
7372

0 commit comments

Comments
 (0)