mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-09 19:46:43 +02:00
fix: removed uneccesary derives
This commit is contained in:
parent
982cf855e5
commit
84348ac029
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
use clap::ValueEnum;
|
use clap::ValueEnum;
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
use url::Host;
|
use url::Host;
|
||||||
|
|
||||||
pub trait Data: Send + Sync {
|
pub trait Data: Send + Sync {
|
||||||
|
@ -17,7 +16,7 @@ pub trait Data: Send + Sync {
|
||||||
fn get_all_acls(&self) -> HashSet<AclDatabaseEntry>;
|
fn get_all_acls(&self) -> HashSet<AclDatabaseEntry>;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, Hash, Eq, PartialEq, ValueEnum)]
|
#[derive(Debug, Clone, Copy, Hash, Eq, PartialEq, ValueEnum)]
|
||||||
pub enum AclMode {
|
pub enum AclMode {
|
||||||
Block,
|
Block,
|
||||||
Allow,
|
Allow,
|
||||||
|
@ -31,7 +30,7 @@ impl AclMode {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[derive(Serialize, Deserialize, Debug, Clone, Hash, Eq, PartialEq)]
|
#[derive(Hash, Eq, PartialEq)]
|
||||||
|
|
||||||
pub struct AclDatabaseEntry {
|
pub struct AclDatabaseEntry {
|
||||||
pub(crate) mode: AclMode,
|
pub(crate) mode: AclMode,
|
||||||
|
|
Loading…
Add table
Reference in a new issue