Skip to content

Commit 0ad682e

Browse files
committed
Address io-errors
1 parent e6b2819 commit 0ad682e

File tree

1 file changed

+22
-26
lines changed

1 file changed

+22
-26
lines changed

src/errors/io_error.rs

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,17 @@ impl IoErrorProto {
4040
ErrorKind::WriteZero => 22,
4141
ErrorKind::StorageFull => 23,
4242
ErrorKind::NotSeekable => 24,
43-
ErrorKind::QuotaExceeded => 25,
44-
ErrorKind::FileTooLarge => 26,
45-
ErrorKind::ResourceBusy => 27,
46-
ErrorKind::ExecutableFileBusy => 28,
47-
ErrorKind::Deadlock => 29,
48-
ErrorKind::CrossesDevices => 30,
49-
ErrorKind::TooManyLinks => 31,
50-
ErrorKind::ArgumentListTooLong => 32,
51-
ErrorKind::Interrupted => 33,
52-
ErrorKind::Unsupported => 34,
53-
ErrorKind::UnexpectedEof => 35,
54-
ErrorKind::OutOfMemory => 36,
55-
ErrorKind::Other => 37,
43+
ErrorKind::FileTooLarge => 25,
44+
ErrorKind::ResourceBusy => 26,
45+
ErrorKind::ExecutableFileBusy => 27,
46+
ErrorKind::Deadlock => 28,
47+
ErrorKind::TooManyLinks => 29,
48+
ErrorKind::ArgumentListTooLong => 30,
49+
ErrorKind::Interrupted => 31,
50+
ErrorKind::Unsupported => 32,
51+
ErrorKind::UnexpectedEof => 33,
52+
ErrorKind::OutOfMemory => 34,
53+
ErrorKind::Other => 35,
5654
_ => -1,
5755
},
5856
err: err.to_string(),
@@ -86,19 +84,17 @@ impl IoErrorProto {
8684
22 => ErrorKind::WriteZero,
8785
23 => ErrorKind::StorageFull,
8886
24 => ErrorKind::NotSeekable,
89-
25 => ErrorKind::QuotaExceeded,
90-
26 => ErrorKind::FileTooLarge,
91-
27 => ErrorKind::ResourceBusy,
92-
28 => ErrorKind::ExecutableFileBusy,
93-
29 => ErrorKind::Deadlock,
94-
30 => ErrorKind::CrossesDevices,
95-
31 => ErrorKind::TooManyLinks,
96-
32 => ErrorKind::ArgumentListTooLong,
97-
33 => ErrorKind::Interrupted,
98-
34 => ErrorKind::Unsupported,
99-
35 => ErrorKind::UnexpectedEof,
100-
36 => ErrorKind::OutOfMemory,
101-
37 => ErrorKind::Other,
87+
25 => ErrorKind::FileTooLarge,
88+
26 => ErrorKind::ResourceBusy,
89+
27 => ErrorKind::ExecutableFileBusy,
90+
28 => ErrorKind::Deadlock,
91+
29 => ErrorKind::TooManyLinks,
92+
30 => ErrorKind::ArgumentListTooLong,
93+
31 => ErrorKind::Interrupted,
94+
32 => ErrorKind::Unsupported,
95+
33 => ErrorKind::UnexpectedEof,
96+
34 => ErrorKind::OutOfMemory,
97+
35 => ErrorKind::Other,
10298
_ => ErrorKind::Other,
10399
};
104100
(

0 commit comments

Comments
 (0)