From 9aba39538a9dff4eaa79b33dc3567d9a0eccb612 Mon Sep 17 00:00:00 2001 From: Fritz Leo Ochsmann <53190645+Randoooom@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:49:32 +0100 Subject: [PATCH] refactor: resolve --- rustfmt.toml | 3 ++- src/auth/mod.rs | 1 + src/database/migration.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rustfmt.toml b/rustfmt.toml index c0871dc4..a9793208 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1 +1,2 @@ -imports_granularity = "crate" \ No newline at end of file +imports_granularity = "crate" + diff --git a/src/auth/mod.rs b/src/auth/mod.rs index 60e4bd9e..08e9b25c 100644 --- a/src/auth/mod.rs +++ b/src/auth/mod.rs @@ -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() diff --git a/src/database/migration.rs b/src/database/migration.rs index 3cd702ea..47d24dae 100644 --- a/src/database/migration.rs +++ b/src/database/migration.rs @@ -37,6 +37,6 @@ impl From 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 {});