Migrate crates to Rust edition 2021 (#24)

* Migrate ffmpeg-sys to Edition 2021

* Migrate ffmpeg to Edition 2021

* Remove now-redundant imports

* Reorder imports after edition migration
This commit is contained in:
FreezyLemon
2024-04-07 03:31:36 +02:00
committed by GitHub
parent f601a4bb69
commit 7a8643f2cc
131 changed files with 297 additions and 299 deletions

View File

@ -3,8 +3,8 @@ use std::ffi::{CStr, CString, NulError};
use std::fmt;
use std::str::{from_utf8_unchecked, FromStr};
use ffi::AVPixelFormat::*;
use ffi::*;
use crate::ffi::AVPixelFormat::*;
use crate::ffi::*;
#[cfg(feature = "serialize")]
use serde::{Deserialize, Serialize};

View File

@ -4,8 +4,8 @@ use std::ptr;
use std::slice;
use std::str::from_utf8_unchecked;
use ffi::AVSampleFormat::*;
use ffi::*;
use crate::ffi::AVSampleFormat::*;
use crate::ffi::*;
use libc::{c_int, c_void};
#[cfg(feature = "serialize")]
use serde::{Deserialize, Serialize};