Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
kellpossible committed Feb 15, 2024
1 parent 144caee commit be0e15a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,15 @@ pub async fn middleware(
},
);
environment.add_function("ansi_to_html", |ansi_string: &str| {
ansi_to_html::convert_with_opts(ansi_string, &ansi_to_html::Opts::default()).map_err(|error| {
Error::new(
ErrorKind::InvalidOperation,
"Error while converting ANSI string to HTML".to_owned(),
)
.with_source(error)
})
ansi_to_html::convert_with_opts(ansi_string, &ansi_to_html::Opts::default()).map_err(
|error| {
Error::new(
ErrorKind::InvalidOperation,
"Error while converting ANSI string to HTML".to_owned(),
)
.with_source(error)
},
)
});
let uri = request.uri();
let query_value: Value = uri
Expand Down

0 comments on commit be0e15a

Please sign in to comment.