Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SteelAlloy committed Sep 17, 2024
1 parent 188c623 commit afa34ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions src/endpoint.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -287,11 +289,11 @@ pub struct Endpoint {

pub fn endpoint_from_operations(builder: EndpointBuilder, operations: Vec<Operation>) -> 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);
Expand All @@ -307,7 +309,7 @@ pub fn endpoint_from_operations(builder: EndpointBuilder, operations: Vec<Operat
}
}
}
};
}

endpoint
}
}
2 changes: 1 addition & 1 deletion src/metadata.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{geometry::{Point, Rect}, Endpoint, EndpointBuilder};
use crate::geometry::{Point, Rect};
use serde::Deserialize;

#[derive(Deserialize, Debug)]
Expand Down

0 comments on commit afa34ee

Please sign in to comment.