Skip to content

Commit

Permalink
Merge pull request #81 from cakebaker/clippy_fix_warning_on_windows
Browse files Browse the repository at this point in the history
clippy: use char instead of closure
  • Loading branch information
sylvestre authored Sep 11, 2024
2 parents 7a8b3f2 + 124dbc8 commit c739331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ fn test_sysname() {
fn test_nodename_no_trailing_NUL() {
let info = PlatformInfo::new().unwrap();
let nodename = info.nodename().to_string_lossy();
let trimmed = nodename.trim().trim_end_matches(|c| c == '\0');
let trimmed = nodename.trim().trim_end_matches('\0');
println!("nodename=[{}]'{}'", nodename.len(), nodename);
assert_eq!(nodename, trimmed);
}
Expand Down

0 comments on commit c739331

Please sign in to comment.