Fix clippy::redundant_field_names
This commit is contained in:
@ -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,
|
||||
}),
|
||||
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user