From afa34ee53b19d3a604f840981e0f9fb3714ce0ac Mon Sep 17 00:00:00 2001 From: steel Date: Wed, 18 Sep 2024 00:27:05 +0200 Subject: [PATCH] fmt --- src/endpoint.rs | 14 ++++++++------ src/metadata.rs | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/endpoint.rs b/src/endpoint.rs index 29da41a..229af58 100644 --- a/src/endpoint.rs +++ b/src/endpoint.rs @@ -1,7 +1,9 @@ use std::fmt::Display; use crate::{ - geometry::{Point, Rect}, metadata::Operation, server::Server + geometry::{Point, Rect}, + metadata::Operation, + server::Server, }; use filter::Filter; @@ -287,11 +289,11 @@ pub struct Endpoint { pub fn endpoint_from_operations(builder: EndpointBuilder, operations: Vec) -> Endpoint { let mut endpoint = builder.build(); - + for operation in operations { match operation { Operation::Resize(size) => { - endpoint.resize = Some(size); + endpoint.resize = Some(size); } Operation::Crop(rect) => { endpoint.crop = Some(rect); @@ -307,7 +309,7 @@ pub fn endpoint_from_operations(builder: EndpointBuilder, operations: Vec