feat: appeased the clippy gods

This commit is contained in:
NinekoTheCat 2023-12-24 20:21:40 +01:00
parent 0add1c7c52
commit b7141598dc
No known key found for this signature in database
GPG key ID: 700DB3F678A4AB66
4 changed files with 6 additions and 6 deletions

View file

@ -44,7 +44,7 @@ impl Service {
pub fn add_acl(&self, host: Host, mode: AclMode) -> crate::Result<()> {
self.db.add_acl(AclDatabaseEntry {
mode: mode,
mode,
hostname: host,
})
}
@ -59,7 +59,7 @@ impl Service {
);
return false;
};
return self.is_federation_with_allowed(hostname);
self.is_federation_with_allowed(hostname)
}
/// same as federation_with_allowed however it can work with the fedi_dest type
@ -70,7 +70,7 @@ impl Service {
warn!("cannot deserialise hostname for server with name {:?}", srv);
return false;
};
return self.is_federation_with_allowed(hostname);
self.is_federation_with_allowed(hostname)
}
/// is federation allowed with this particular server?
pub fn is_federation_with_allowed(&self, server_host_name: Host<String>) -> bool {