Merge pull request #2094 from asomers/clippy-aug-11-2023

Clippy cleanup: noop_method_call
This commit is contained in:
Alan Somers 2023-08-11 15:43:32 +00:00 committed by GitHub
commit 6fb3a8fcaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,7 +200,7 @@ mod aio_read {
assert_eq!(err, Ok(()));
assert_eq!(aior.as_mut().aio_return().unwrap(), EXPECT.len());
}
assert_eq!(EXPECT, rbuf.deref().deref());
assert_eq!(EXPECT, rbuf.deref());
}
// Like ok, but allocates the structure on the stack.
@ -223,7 +223,7 @@ mod aio_read {
assert_eq!(err, Ok(()));
assert_eq!(aior.as_mut().aio_return().unwrap(), EXPECT.len());
}
assert_eq!(EXPECT, rbuf.deref().deref());
assert_eq!(EXPECT, rbuf.deref());
}
}