Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed Oct 24, 2024
1 parent f7a0315 commit b610d65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/indent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ fn get_back(line: &str, pattern: &Pattern, state: &State) -> i8 {
}

/// Calculate indentation properties of the current line
fn get_indent(line: &str, prev_indent: &Indent, pattern: &Pattern, state: &State) -> Indent {
fn get_indent(
line: &str,
prev_indent: &Indent,
pattern: &Pattern,
state: &State,
) -> Indent {
let diff = get_diff(line, pattern);
let back = get_back(line, pattern, state);
let actual = prev_indent.actual + diff;
Expand Down

0 comments on commit b610d65

Please sign in to comment.