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:
@ -1,11 +1,11 @@
|
||||
use std::marker::PhantomData;
|
||||
use std::ptr;
|
||||
|
||||
use device;
|
||||
use ffi::*;
|
||||
use format::context::common::Context;
|
||||
use crate::device;
|
||||
use crate::ffi::*;
|
||||
use crate::format::context::common::Context;
|
||||
use crate::Error;
|
||||
use libc::c_int;
|
||||
use Error;
|
||||
|
||||
impl Context {
|
||||
pub fn devices(&self) -> Result<DeviceIter, Error> {
|
||||
|
@ -1,8 +1,8 @@
|
||||
use std::ptr;
|
||||
|
||||
use ffi::*;
|
||||
use format;
|
||||
use Format;
|
||||
use crate::ffi::*;
|
||||
use crate::format;
|
||||
use crate::Format;
|
||||
|
||||
pub struct AudioIter(*mut AVInputFormat);
|
||||
|
||||
|
@ -6,7 +6,7 @@ use std::ffi::CStr;
|
||||
use std::marker::PhantomData;
|
||||
use std::str::from_utf8_unchecked;
|
||||
|
||||
use ffi::*;
|
||||
use crate::ffi::*;
|
||||
|
||||
pub struct Info<'a> {
|
||||
ptr: *mut AVDeviceInfo,
|
||||
|
@ -1,8 +1,8 @@
|
||||
use std::ptr;
|
||||
|
||||
use ffi::*;
|
||||
use format;
|
||||
use Format;
|
||||
use crate::ffi::*;
|
||||
use crate::format;
|
||||
use crate::Format;
|
||||
|
||||
pub struct AudioIter(*mut AVOutputFormat);
|
||||
|
||||
|
Reference in New Issue
Block a user