examples: fix indentations (#1017)

This commit is contained in:
Snêu 2023-05-08 19:36:45 +07:00 committed by GitHub
parent 50b48fb272
commit b01976e3bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ if #[cfg(feature = "ssr")] {
let res = get_static_file(uri.clone(), &root).await.unwrap();
if res.status() == StatusCode::OK {
res.into_response()
res.into_response()
} else{
let handler = leptos_axum::render_app_to_stream(options.to_owned(), |cx| error_template(cx, None));
handler(req).await.into_response()

View file

@ -22,7 +22,7 @@ if #[cfg(feature = "ssr")] {
let res = get_static_file(uri.clone(), &root).await.unwrap();
if res.status() == StatusCode::OK {
res.into_response()
res.into_response()
} else{
let mut errors = Errors::default();
errors.insert_with_default_key(TodoAppError::NotFound);

View file

@ -20,7 +20,7 @@ cfg_if! { if #[cfg(feature = "ssr")] {
let res = get_static_file(uri.clone(), &root).await.unwrap();
if res.status() == StatusCode::OK {
res.into_response()
res.into_response()
} else{
let handler = leptos_axum::render_app_to_stream(
options.to_owned(),

View file

@ -22,7 +22,7 @@ if #[cfg(feature = "ssr")] {
let res = get_static_file(uri.clone(), &root).await.unwrap();
if res.status() == StatusCode::OK {
res.into_response()
res.into_response()
} else{
let mut errors = Errors::default();
errors.insert_with_default_key(TodoAppError::NotFound);