From 656062a1034973320d82e8cf53a142ab9e13320e Mon Sep 17 00:00:00 2001 From: max funk Date: Sun, 17 Sep 2023 23:14:51 -0700 Subject: [PATCH] rust lint --- crates/types/src/account.rs | 4 ++-- crates/types/src/rule.rs | 14 +++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/crates/types/src/account.rs b/crates/types/src/account.rs index 65a75147..597fd1cd 100644 --- a/crates/types/src/account.rs +++ b/crates/types/src/account.rs @@ -1,8 +1,8 @@ +use async_trait::async_trait; use postgres_types::{FromSql, ToSql}; use serde::Deserialize; -use tokio_postgres::Row; -use async_trait::async_trait; use std::error::Error; +use tokio_postgres::Row; #[async_trait] pub trait AccountStore { diff --git a/crates/types/src/rule.rs b/crates/types/src/rule.rs index d3aa405f..3321eafa 100644 --- a/crates/types/src/rule.rs +++ b/crates/types/src/rule.rs @@ -1,16 +1,24 @@ use crate::account_role::AccountRole; use crate::time::TZTime; +use async_trait::async_trait; #[allow(unused_imports)] use chrono::{DateTime, Utc}; use postgres_types::{FromSql, ToSql}; use serde::{Deserialize, Serialize}; use tokio_postgres::Row; -use async_trait::async_trait; #[async_trait] pub trait RuleInstanceStore { - async fn get_profile_state_rule_instances(&self, account_role: AccountRole, state_name: String) -> RuleInstances; - async fn get_rule_instances_by_type_role_account(&self, account_role: AccountRole, account: String) -> RuleInstances; + async fn get_profile_state_rule_instances( + &self, + account_role: AccountRole, + state_name: String, + ) -> RuleInstances; + async fn get_rule_instances_by_type_role_account( + &self, + account_role: AccountRole, + account: String, + ) -> RuleInstances; async fn get_approval_rule_instances( &self, account_role: AccountRole,