Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Subject38 committed Mar 26, 2024
1 parent 4fc4da1 commit 1c93ec6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/editor/images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ impl From<GpImage> for EditorImage {
);
let image_info = SkImageInfo::from_color_info((width as i32, height as i32), color_info);
let skdata = unsafe { SkData::new_bytes(&data) };
let img = skia_safe::images::raster_from_data(&image_info, skdata, (width * 4) as usize).unwrap();

let img =
skia_safe::images::raster_from_data(&image_info, skdata, (width * 4) as usize).unwrap();

Self {
img,
data,
Expand Down
2 changes: 1 addition & 1 deletion src/editor/util.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// This file is mainly utilities that are common use cases for the editor, but don't necessarily need to be
// in Editor.

use crate::{get_contour_len, get_point_mut};
use crate::user_interface::Interface;
use crate::{get_contour_len, get_point_mut};
use flo_curves::{
bezier::{solve_curve_for_t_along_axis, Curve as FloCurve},
geo::Coord2,
Expand Down
1 change: 0 additions & 1 deletion src/user_interface/sdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ impl Interface {
(sdl_context, window, gr_context, gl_ctx)
}


pub fn set_window_title(&mut self, title: &str) -> Result<(), NulError> {
self.sdl_window.set_title(title)
}
Expand Down

0 comments on commit 1c93ec6

Please sign in to comment.