Skip to content

Commit

Permalink
rust lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mxfactorial committed Sep 18, 2023
1 parent 5655659 commit 656062a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/types/src/account.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
14 changes: 11 additions & 3 deletions crates/types/src/rule.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 656062a

Please sign in to comment.