Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sdankel committed May 2, 2024
1 parent 45384af commit 55c54fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/middleware/token_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use rocket::http::Status;
use rocket::request::{FromRequest, Outcome};
use rocket::Request;



pub const SESSION_COOKIE_NAME: &str = "session";

pub struct TokenAuth {
Expand Down
6 changes: 2 additions & 4 deletions tests/db_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,11 @@ fn test_api_tokens() {
assert_eq!(tokens.len(), 2);

// Delete tokens
db
.delete_token(user.id, token1.id.into())
db.delete_token(user.id, token1.id.into())
.expect("result is ok");
let tokens = db.get_tokens_for_user(user.id).expect("result is ok");
assert_eq!(tokens.len(), 1);
db
.delete_token(user.id, token2.id.into())
db.delete_token(user.id, token2.id.into())
.expect("result is ok");
let tokens = db.get_tokens_for_user(user.id).expect("result is ok");
assert_eq!(tokens.len(), 0);
Expand Down

0 comments on commit 55c54fe

Please sign in to comment.