Commit Graph

14 Commits

Author SHA1 Message Date
6a7a69e1e7 util::error: drop reserved errnos that are not available on Windows
Signed-off-by: Zhiming Wang <i@zhimingwang.org>
2020-08-12 10:30:11 +08:00
c9d223e8fe util::error: correct comment regarding errno reexports 2020-08-09 13:57:43 +08:00
81e142c6b7 util: introduce new Error variant Error:Other { errno }
Do not hide all the POSIX error codes behind a useless Error::Unknown.

Fixes #24.
2020-08-08 23:16:09 +08:00
d4c64458db Fix ARM compatibility
Tested to successfully compile in an arm64v8/debian:buster container (running
on an x64 box through qemu-aarch64). Should work on armhf too, though haven't
tested yet.
2020-07-24 20:27:58 +08:00
cd6c9d972b Fix std::error::Error::description deprecation 2020-05-31 14:16:23 +08:00
0bcd4550b8 *: format code with rustfmt and fix clippy suggestions
* Add avformat_close_input call to clean up AVFormantContext
* Format code with rustfmt
* Fix clippy lint double_parens
* Fix clippy lint deref_addrof
* Fix clippy lint identity_conversion
* Fix clippy lint match_ref_pats
* Fix clippy lint cast_lossless
* Fix clippy lint cmp_null
* Fix clippy lint clone_on_ref_ptr
* Fix clippy lint map_clone
* Fix clippy lint needless_borrow
* Fix clippy lint needless_pass_by_value
* Fix clippy lints for examples
* Fix clippy lint unused_io_amount
* Fix clippy lint new_without_default
* Ignore inline_always clippy lint
* Add vim temp files to .gitignore
2018-04-10 16:06:42 +02:00
meh
7ab04e200b util/error: add inline attributes 2015-10-01 20:43:24 +02:00
meh
316778ccd9 error: implement From<Error> for io::Error 2015-09-22 04:03:49 +02:00
meh
df52ef68d8 util/error: make index a private function 2015-05-24 19:13:20 +02:00
meh
5b80b10949 util/error: refactor error handling 2015-05-24 18:51:34 +02:00
meh
2716893612 util/error: add more helpers 2015-05-24 16:11:58 +02:00
meh
00508e2485 util/error: make it Send and Clone 2015-05-21 20:20:16 +02:00
meh
8bdb50ebaf util/error: implement From for Error 2015-05-16 14:44:48 +02:00
meh
eef3e9c556 util/error: add error handling 2015-05-07 04:32:32 +02:00