Fix clippy::redundant_field_names

This commit is contained in:
Zhiming Wang
2020-07-26 01:01:13 +08:00
parent ceb1a7ea7c
commit 73b66ea438
38 changed files with 69 additions and 93 deletions

View File

@ -28,7 +28,7 @@ impl<'a> DeviceIter<'a> {
n if n < 0 => Err(Error::from(n)),
_ => Ok(DeviceIter {
ptr: ptr,
ptr,
cur: 0,
_marker: PhantomData,
}),

View File

@ -17,7 +17,7 @@ pub struct Info<'a> {
impl<'a> Info<'a> {
pub unsafe fn wrap(ptr: *mut AVDeviceInfo) -> Self {
Info {
ptr: ptr,
ptr,
_marker: PhantomData,
}
}