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

@ -128,7 +128,8 @@ impl Context {
}
pub fn run(&mut self, input: &frame::Video, output: &mut frame::Video) -> Result<(), Error> {
if input.format() != self.input.format || input.width() != self.input.width
if input.format() != self.input.format
|| input.width() != self.input.width
|| input.height() != self.input.height
{
return Err(Error::InputChanged);
@ -140,7 +141,8 @@ impl Context {
}
}
if output.format() != self.output.format || output.width() != self.output.width
if output.format() != self.output.format
|| output.width() != self.output.width
|| output.height() != self.output.height
{
return Err(Error::OutputChanged);