Chore: cleanup
This commit is contained in:
parent
cb29aaf7f7
commit
65401700c0
3 changed files with 18 additions and 11 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue