Fix clippy::redundant_field_names
This commit is contained in:
@ -60,7 +60,7 @@ impl Context {
|
||||
e if e < 0 => Err(Error::from(e)),
|
||||
|
||||
_ => Ok(Context {
|
||||
ptr: ptr,
|
||||
ptr,
|
||||
|
||||
input: Definition {
|
||||
format: src_format,
|
||||
|
@ -58,7 +58,7 @@ impl Context {
|
||||
|
||||
if !ptr.is_null() {
|
||||
Ok(Context {
|
||||
ptr: ptr,
|
||||
ptr,
|
||||
|
||||
input: Definition {
|
||||
format: src_format,
|
||||
|
@ -14,7 +14,7 @@ pub struct Vector<'a> {
|
||||
impl<'a> Vector<'a> {
|
||||
pub unsafe fn wrap(ptr: *mut SwsVector) -> Self {
|
||||
Vector {
|
||||
ptr: ptr,
|
||||
ptr,
|
||||
_own: false,
|
||||
_marker: PhantomData,
|
||||
}
|
||||
|
Reference in New Issue
Block a user