refactor(common): move Policy types from types.rs into policy.rs

This commit is contained in:
michael
2026-04-27 06:22:54 -07:00
parent 57c97b492c
commit dc2c4b02cb
5 changed files with 85 additions and 72 deletions

View File

@@ -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;