mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
fix review comments
This commit is contained in:
1 parent
c336259159
commit
5327b71215
3 files changed
+4
-2
No files matched your search
+2
-2
@@ -20,14 +20,14 @@ impl<'a> Seek for Input<'a> {
|
||||
match *self {
|
||||
Input::File(ref mut file) => {
|
||||
let seek_res = file.seek(pos);
|
||||
if let Err(Some(29)) = seek_res.as_ref().map_err(|err| err.raw_os_error()) {
|
||||
if let Err(Some(libc::ESPIPE)) = seek_res.as_ref().map_err(|err| err.raw_os_error())
|
||||
{
|
||||
return Err(io::Error::new(
|
||||
io::ErrorKind::Other,
|
||||
"Using '--seek' is not supported when using a pipe",
|
||||
)
|
||||
.into());
|
||||
};
|
||||
dbg!(&seek_res);
|
||||
seek_res
|
||||
}
|
||||
Input::Stdin(_) => Err(io::Error::new(
|
||||
|
||||
Reference in new issue
Block a user