Chore: cleanup

This commit is contained in:
Dorian Zedler 2023-03-11 21:51:26 +01:00
parent cb29aaf7f7
commit 65401700c0
Signed by: dozedler
GPG key ID: 989DE36109AFA354
3 changed files with 18 additions and 11 deletions

View file

@ -10,7 +10,7 @@ async fn handler() -> impl axum::response::IntoResponse {
context.set_source_rgba(0.0, 0.0, 0.0, 0.0);
context.fill().unwrap();
polygon::draw_polygon_of_polygons((50.0, 50.0), 65.0, 6, &context, false);
polygon::draw_polygon_of_polygons((50.0, 50.0), 65.0, 6, &context, false).unwrap();
let mut data: Vec<u8> = Vec::new();
surface.write_to_png(&mut data).unwrap();

View file

@ -32,7 +32,8 @@ async fn handler(Query(properties): Query<ImageProperties>) -> impl axum::respon
6,
&context,
properties.dark_mode,
);
)
.unwrap();
let mut data: Vec<u8> = Vec::new();
surface.write_to_png(&mut data).unwrap();