Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aki Vänttinen committed Mar 22, 2020
1 parent db7a375 commit 3b182da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 2 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ max_width = 120
newline_style = "Unix"
fn_single_line = true
indent_style = "Visual"
use_small_heuristics = "Off"
use_small_heuristics = "Off"
struct_lit_single_line = true
7 changes: 0 additions & 7 deletions src/path_find/rectangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ pub struct Rectangle {
}

impl Rectangle {
fn new(x: usize, y: usize, x_end: usize, y_end: usize) -> Rectangle {
Rectangle { x,
y,
x_end,
y_end }
}

pub fn init_from_center(center: (f32, f32), size: (usize, usize), width: usize, height: usize) -> Rectangle {
let pos_x: usize = center.0 as usize;
let pos_y: usize = center.1 as usize;
Expand Down

0 comments on commit 3b182da

Please sign in to comment.