Skip to content

Commit

Permalink
refactor: resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Randoooom committed Nov 27, 2023
1 parent 6fad377 commit 9aba395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
imports_granularity = "crate"
imports_granularity = "crate"

1 change: 1 addition & 0 deletions src/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl Authenticate for InternalAccount {
}

impl Authenticate for MachineAccount {
#[instrument(skip_all)]
fn login(&self, password: &str, _token: Option<&str>) -> Result<()> {
// compare the password with the stored hash
Argon2::default()
Expand Down
2 changes: 1 addition & 1 deletion src/database/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ impl From<String> for Migration {
}
}

impl_select!(Migration {select_latest() -> Option => "ORDER BY created_at DESC LIMIT 1"});
impl_select!(Migration {select_latest() -> Option => "`ORDER BY created_at DESC LIMIT 1`"});
impl_insert!(Migration {});

0 comments on commit 9aba395

Please sign in to comment.