Fix linting errors

This commit is contained in:
Polochon-street
2021-07-06 19:05:15 +02:00
parent 67fded37d0
commit 19ab5f67ad
33 changed files with 109 additions and 108 deletions

View File

@ -100,9 +100,9 @@ impl From<c_int> for Error {
}
}
impl Into<c_int> for Error {
fn into(self) -> c_int {
match self {
impl From<Error> for c_int {
fn from(value: Error) -> c_int {
match value {
Error::BsfNotFound => AVERROR_BSF_NOT_FOUND,
Error::Bug => AVERROR_BUG,
Error::BufferTooSmall => AVERROR_BUFFER_TOO_SMALL,
@ -202,7 +202,7 @@ fn index(error: &Error) -> usize {
// XXX: the length has to be synced with the number of errors
static mut STRINGS: [[c_char; AV_ERROR_MAX_STRING_SIZE]; 27] =
[[0 as c_char; AV_ERROR_MAX_STRING_SIZE]; 27];
[[0_i8; AV_ERROR_MAX_STRING_SIZE]; 27];
pub fn register_all() {
unsafe {