fix: windows build
This commit is contained in:
parent
ed8a2c3d66
commit
c874e1165a
@ -270,18 +270,20 @@ fn prepare_long_header<'a>(
|
||||
Ok(Cow::Owned(PathBuf::from(s)))
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
fn not_unicode(v: &[u8]) -> std::io::Error {
|
||||
use std::io::{Error, ErrorKind};
|
||||
// Used with windows.
|
||||
#[allow(dead_code)]
|
||||
fn not_unicode(v: &[u8]) -> std::io::Error {
|
||||
use std::io::{Error, ErrorKind};
|
||||
|
||||
Error::new(
|
||||
ErrorKind::Other,
|
||||
&format!(
|
||||
"only Unicode paths are supported on Windows: {}",
|
||||
String::from_utf8_lossy(v)
|
||||
),
|
||||
)
|
||||
}
|
||||
Error::new(
|
||||
ErrorKind::Other,
|
||||
format!(
|
||||
"only Unicode paths are supported on Windows: {}",
|
||||
String::from_utf8_lossy(v)
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
// we **only** have utf8 paths as protobuf has already parsed this file
|
||||
|
Loading…
x
Reference in New Issue
Block a user