Skip to content

Commit d60ed38

Browse files
committed
make clippy happy on windows
1 parent aece40a commit d60ed38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/shell.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ mod imp {
622622
// INVALID_HANDLE_VALUE. Use an alternate method which works
623623
// in that case as well.
624624
let h = CreateFileA(
625-
"CONOUT$\0".as_ptr() as PCSTR,
625+
c"CONOUT$".as_ptr() as PCSTR,
626626
GENERIC_READ | GENERIC_WRITE,
627627
FILE_SHARE_READ | FILE_SHARE_WRITE,
628628
ptr::null_mut(),
@@ -660,7 +660,7 @@ fn default_err_erase_line(shell: &mut Shell) {
660660
match imp::stderr_width() {
661661
TtyWidth::Known(max_width) | TtyWidth::Guess(max_width) => {
662662
let blank = " ".repeat(max_width);
663-
drop(write!(shell.output.stderr(), "{}\r", blank));
663+
drop(write!(shell.output.stderr(), "{blank}\r"));
664664
}
665665
_ => (),
666666
}

0 commit comments

Comments
 (0)