Skip to content

Commit

Permalink
Replace deprecated trim_right with trim_end (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-fairy committed Jan 7, 2023
1 parent c999f38 commit dbd02cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ where
let mut msg = [0u8; 2048];
let msg = from_utf16_lossy(&buf[..res as usize], &mut msg[..]);
// Trim trailing CRLF inserted by FormatMessageW
#[allow(deprecated)] // TODO: remove when MSRV >= 1.30
callback(Ok(msg.trim_right()))
callback(Ok(msg.trim_end()))
}
}

Expand Down

0 comments on commit dbd02cf

Please sign in to comment.