Skip to content

Commit

Permalink
Apply Format
Browse files Browse the repository at this point in the history
  • Loading branch information
SeppFS committed Dec 8, 2023
1 parent a7b8813 commit 9a6ea71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 4 additions & 4 deletions render/src/umi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl Umi {
fn fetch_next_line(&mut self, new_line_index: usize) -> Option<UmiRow> {
if new_line_index < self.elements.len() {
Some(self.elements[new_line_index].clone())
}else{
} else {
None
}
}
Expand Down Expand Up @@ -175,7 +175,7 @@ impl Umi {

current_line_index += 1;
let fetched = self.fetch_next_line(current_line_index);
if fetched.is_none(){
if fetched.is_none() {
break;
}
current_line = fetched.unwrap();
Expand Down Expand Up @@ -210,9 +210,9 @@ impl Umi {
}

current_line_index += 1;

let fetched = self.fetch_next_line(current_line_index);
if fetched.is_none(){
if fetched.is_none() {
break;
}
current_line = fetched.unwrap();
Expand Down
10 changes: 2 additions & 8 deletions render/src/umi/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ impl Renderer<Umi> for UmiRenderer {
);
self.pos += 1;

self.proceed(Umi::with_um(
vec![verbatim],
context.get_lang().to_string(),
))
self.proceed(Umi::with_um(vec![verbatim], context.get_lang().to_string()))
}

fn render_heading(
Expand Down Expand Up @@ -140,10 +137,7 @@ impl Renderer<Umi> for UmiRenderer {
);
self.pos += 1;

self.proceed(Umi::with_um(
vec![heading],
context.get_lang().to_string(),
))
self.proceed(Umi::with_um(vec![heading], context.get_lang().to_string()))
}

fn render_bullet_list(
Expand Down

0 comments on commit 9a6ea71

Please sign in to comment.