rustfmt
This commit is contained in:
parent
64aec75659
commit
be505480c5
2 changed files with 149 additions and 145 deletions
2
rustfmt.toml
Normal file
2
rustfmt.toml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
tab_spaces = 2
|
||||||
|
use_field_init_shorthand = true
|
|
@ -54,7 +54,8 @@ fn hop(data: Data<Arc<RwLock<State>>>, query: Query<SearchQuery>) -> impl Respon
|
||||||
Some(template) => HttpResponse::Found()
|
Some(template) => HttpResponse::Found()
|
||||||
.header(
|
.header(
|
||||||
header::LOCATION,
|
header::LOCATION,
|
||||||
data.renderer
|
data
|
||||||
|
.renderer
|
||||||
.render_template(template, &template_args)
|
.render_template(template, &template_args)
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
)
|
)
|
||||||
|
@ -72,7 +73,8 @@ fn hop(data: Data<Arc<RwLock<State>>>, query: Query<SearchQuery>) -> impl Respon
|
||||||
HttpResponse::Found()
|
HttpResponse::Found()
|
||||||
.header(
|
.header(
|
||||||
header::LOCATION,
|
header::LOCATION,
|
||||||
data.renderer
|
data
|
||||||
|
.renderer
|
||||||
.render_template(data.routes.get(route).unwrap(), &template_args)
|
.render_template(data.routes.get(route).unwrap(), &template_args)
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue