minor: Remove unused warnings
This commit is contained in:
parent
452da73413
commit
b37c0665d3
4 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
#[derive(Clone, Debug)]
|
||||
pub struct Group {
|
||||
#[expect(unused)]
|
||||
name: String,
|
||||
#[expect(unused)]
|
||||
domain: String,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue