Skip to content

Commit 6b1e200

Browse files
committed
fix errors on windows.
1 parent e93c941 commit 6b1e200

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/libstd/io/stdio.rs

-1
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,6 @@ pub fn _print(args: fmt::Arguments<'_>) {
759759
#[doc(hidden)]
760760
#[cfg(not(test))]
761761
pub fn _eprint(args: fmt::Arguments<'_>) {
762-
use crate::panicking::LOCAL_STDERR;
763762
print_to(args, &LOCAL_STDERR, stderr, "stderr");
764763
}
765764

src/libstd/sys/windows/args.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl<'a> fmt::Debug for ArgsInnerDebug<'a> {
170170
}
171171

172172
impl Args {
173-
pub fn inner_debug(&self) -> ArgsInnerDebug {
173+
pub fn inner_debug(&self) -> ArgsInnerDebug<'_> {
174174
ArgsInnerDebug {
175175
args: self
176176
}

src/libstd/sys/windows/os.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub struct SplitPaths<'a> {
136136
must_yield: bool,
137137
}
138138

139-
pub fn split_paths(unparsed: &OsStr) -> SplitPaths {
139+
pub fn split_paths(unparsed: &OsStr) -> SplitPaths<'_> {
140140
SplitPaths {
141141
data: unparsed.encode_wide(),
142142
must_yield: true,

src/libstd/sys/windows/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn is_verbatim_sep(b: u8) -> bool {
1919
b == b'\\'
2020
}
2121

22-
pub fn parse_prefix<'a>(path: &'a OsStr) -> Option<Prefix> {
22+
pub fn parse_prefix<'a>(path: &'a OsStr) -> Option<Prefix<'a>> {
2323
use crate::path::Prefix::*;
2424
unsafe {
2525
// The unsafety here stems from converting between &OsStr and &[u8]

0 commit comments

Comments
 (0)