We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48665ab commit 82a9875Copy full SHA for 82a9875
1 file changed
src/shell.rs
@@ -622,7 +622,7 @@ mod imp {
622
// INVALID_HANDLE_VALUE. Use an alternate method which works
623
// in that case as well.
624
let h = CreateFileA(
625
- "CONOUT$\0".as_ptr() as PCSTR,
+ c"CONOUT$".as_ptr() as PCSTR,
626
GENERIC_READ | GENERIC_WRITE,
627
FILE_SHARE_READ | FILE_SHARE_WRITE,
628
ptr::null_mut(),
@@ -660,7 +660,7 @@ fn default_err_erase_line(shell: &mut Shell) {
660
match imp::stderr_width() {
661
TtyWidth::Known(max_width) | TtyWidth::Guess(max_width) => {
662
let blank = " ".repeat(max_width);
663
- drop(write!(shell.output.stderr(), "{}\r", blank));
+ drop(write!(shell.output.stderr(), "{blank}\r"));
664
}
665
_ => (),
666
0 commit comments