Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Myers <[email protected]>
  • Loading branch information
Elizafox committed Feb 20, 2024
1 parent 8fe50df commit 86d8d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/controllers/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ pub(crate) async fn login_page_handler(
.insert("auth_token", auth_token.clone())
.map_err(|_| respond_not_authorised(&state))?;

let err_str = session
.get::<String>("login_error")
.unwrap_or_default();
let err_str = session.get::<String>("login_error").unwrap_or_default();

// Remove stale login error
session.remove("login_error");
Expand Down

0 comments on commit 86d8d3a

Please sign in to comment.