refactor(common): move Policy types from types.rs into policy.rs
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
use crate::polkit::Polkit;
|
||||
use crate::state::AppState;
|
||||
use authforge_common::types::{
|
||||
Credential, Method, PendingFlag, Policy, PolicyApplyResult, Transport,
|
||||
};
|
||||
use authforge_common::policy::Policy;
|
||||
use authforge_common::types::{Credential, Method, PendingFlag, PolicyApplyResult, Transport};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct AuthForge {
|
||||
@@ -121,7 +120,8 @@ impl AuthForge {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use authforge_common::types::{Method, StackPolicy};
|
||||
use authforge_common::policy::StackPolicy;
|
||||
use authforge_common::types::Method;
|
||||
use std::collections::BTreeMap;
|
||||
use zbus::connection::Builder;
|
||||
use zbus::Connection;
|
||||
|
||||
Reference in New Issue
Block a user