mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Fix concat issue
This commit is contained in:
parent
feaf35b87b
commit
f9dd0a78dc
|
@ -427,11 +427,12 @@ impl LdapServer {
|
||||||
fn ldap_domain_to_dc(input: &str) -> String {
|
fn ldap_domain_to_dc(input: &str) -> String {
|
||||||
let mut output: String = String::new();
|
let mut output: String = String::new();
|
||||||
input.split('.').for_each(|dc| {
|
input.split('.').for_each(|dc| {
|
||||||
// output.push_str("dc=");
|
output.push_str("dc=");
|
||||||
// output.push_str(dc);
|
output.push_str(dc);
|
||||||
// #[allow(clippy::single_char_add_str)]
|
#[allow(clippy::single_char_add_str)]
|
||||||
// output.push_str(",");
|
output.push_str(",");
|
||||||
output.push_str(concat!("dc=", dc, ","));
|
// Can't use concat as it's evalled at compile, not run time.
|
||||||
|
// output.push_str(concat!("dc=", dc, ","));
|
||||||
});
|
});
|
||||||
// Remove the last ','
|
// Remove the last ','
|
||||||
output.pop();
|
output.pop();
|
||||||
|
|
Loading…
Reference in a new issue