Reformat code with latest cargo fmt

This commit is contained in:
Zhiming Wang
2020-06-02 17:54:31 +08:00
parent fdea9d77e7
commit 307f52c002
11 changed files with 46 additions and 27 deletions

View File

@ -422,7 +422,8 @@ impl Encoder {
out: &mut P,
) -> Result<bool, Error> {
unsafe {
if self.format() != frame.format() || self.width() != frame.width()
if self.format() != frame.format()
|| self.width() != frame.width()
|| self.height() != frame.height()
{
return Err(Error::InvalidData);