minor: Remove unused warnings

This commit is contained in:
selfhoster selfhoster 2026-09-03 21:53:31 +02:00
commit b37c0665d3
4 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,7 @@
#[derive(Clone, Debug)]
pub struct Group {
#[expect(unused)]
name: String,
#[expect(unused)]
domain: String,
}

View file

@ -6,6 +6,7 @@ use crate::db::{Database, DatabaseInterface, Group, User, UserRef};
#[derive(Clone, Debug, Default)]
pub struct MemoryDatabase {
pub users: Vec<User>,
#[expect(unused)]
pub groups: Vec<Group>,
}

View file

@ -137,6 +137,7 @@ impl Dn {
/// Overrides the DN hostname (`dc` fields) with the provided host.
///
/// When no `dc` fields are present, they are only added when `force` is true.
#[expect(unused)]
pub fn set_hostname(&mut self, host: &str, force: bool) {
let domain_components: Vec<String> =
host.split('.').map(|x| dn_escape(x).to_string()).collect();

View file

@ -39,7 +39,7 @@ impl LdapReturnError for InvalidSearchDn {
}
#[derive(Clone, Debug)]
pub struct SearchDn(Dn);
pub struct SearchDn(#[expect(unused)] Dn);
impl SearchDn {
pub fn from_dn_str(input: &str) -> Result<Self, InvalidSearchDn> {